Something here • Header or description can be added here
developer notes

Create Asset

The AssetCreate API allows you to create a new Asset. The request body includes asset name, asset status, asset type, and other relevant information.

Method : POST
API Endpoint :
{{endpoint}}/api/ext/assets

Headers

  • Content-Type: application/json
  • Authorization: Bearer {{token}}

Example Request

 {
        "id": null,
        "name": "assest1",
        "serialNo": null,
        "assetsStatus": {
            "code": "ext3434"
        },
        "assetsType": {
            "code": "extfrgrg"
        },
        "installationDate": null,
        "warrantyStartDate": null,
        "warrantyEndDate": null,
        "brand": null,
        "maintenanceStatus": "",
        "externalId": "assetExtId",
        "newBrand": "",
        "description": "",
        "custodian": null,
        "customer": null,
        "customerLocation": "",
        "serviceZone": {
            "code": "cext1"
        }
    }

Example Response

//status - 201
{
    "createdBy": "load.tech1@trial.custella.com",
    "createdDate": "2023-11-27T06:48:08Z",
    "lastModifiedBy": "load.tech1@trial.custella.com",
    "lastModifiedDate": "2023-11-27T06:48:08Z",
    "id": 12378,
    "name": "assest1",
    "runningNo": "AST-012377",
    "description": null,
    "warrantyStartDate": null,
    "warrantyEndDate": null,
    "installationDate": null,
    "notes": null,
    "brand": null,
    "status": true,
    "condition": null,
    "serialNo": null,
    "location": null,
    "street": null,
    "city": null,
    "state": null,
    "postCode": null,
    "country": null,
    "latitude": null,
    "longitude": null,
    "majorServiceFreq": null,
    "minorServiceFreq": null,
    "nextMaintenanceDate": null,
    "nextMaintenanceType": null,
    "maintenanceStatus": "OVERDUE",
    "equipmentNumber": null,
    "equipmentMeterReading": null,
    "manufacturer": null,
    "manufactureYear": null,
    "engineModel": null,
    "engineNumber": null,
    "model": null,
    "equipmentType": null,
    "acquisitionDate": null,
    "externalId": "null",
    "assetsCode": null,
    "engineMake": null,
    "engineNumber2": null,
    "serviceZone": null,
    "jsonField": null,
    "placeId": null,
    "product": null,
    "customer": null,
    "building": null,
    "stockHistoryData": [],
    "floor": null,
    "room": null,
    "assetsType": {
        "createdBy": null,
        "createdDate": "2023-11-27T06:48:08Z",
        "lastModifiedBy": null,
        "lastModifiedDate": "2023-11-27T06:48:08Z",
        "id": 1,
        "name": null,
        "label": null,
        "isDefault": null,
        "active": null,
        "systemValue": null,
        "code": null,
        "order": 1
    },
    "assetsStatus": {
        "createdBy": null,
        "createdDate": "2023-11-27T06:48:08Z",
        "lastModifiedBy": null,
        "lastModifiedDate": "2023-11-27T06:48:08Z",
        "id": 4,
        "name": null,
        "label": null,
        "order": null,
        "isDefault": null,
        "active": null,
        "systemValue": null,
        "code": null,
        "colorCode": null
    },
    "custodian": null,
    "site": null,
    "project": null,
    "attachments": [],
    "currentUser": null,
    "syncFailed": null
}