Skip to main content
Version: 8.5.X

UPDATE an Asset

This API is used to update the details of the asset. You can also update the "Used By" field of the asset.

URL: BaseURL/api/v1/asset/assetId

Example (Request and Response)

Hardware Asset

Request

{
"type" : "HardwareAsset",
"name" : "Hardware Asset Name Updated",
"usedByEmail": "john@motadata.com,jerry",
"customField" : {
"number" : 8778,
"hardware-textbox" : "hardware-text-updated"
},
"assetPropertyList": [
{
"type": "ComputerProperty",
"osName": "Windows X10",
"propertyCustomField" : {
"computerproperty-textbox" : "computer-text-updated"
}
}
]
}

Response

{
"type": "HardwareAsset",
"id": 1,
"assetTypeName": "Computer",
"assetId": "AST-1",
"name": "Hardware Asset Name Updated",
"impactName": "Low",
"statusName": "In Use",
"origin": "manual",
"usedByEmail": "john@motadata.com,jerry",
"acquitionDate": "15-08-2020",
"tags": [
"tag-1",
"tag-2"
],
"customField": {
"hardware-textbox": "hardware-text-updated",
"number": 8778
},
"createdDate": "19-10-2020 11:23",
"updatedDate": "19-10-2020 11:41",
"assetPropertyList": [
{
"id": 1,
"refName": "AST-1",
"type": "ComputerProperty",
"osName": "Windows X10",
"osVersion": null,
"servicePackName": null,
"osLicenceKey": null,
"osArchitecture": null,
"bootupState": null,
"memorySize": 0,
"diskSize": 0,
"domainName": null,
"cpuSpeed": 0,
"cpuCoreCount": 0,
"partOfDomain": false,
"numberOfLogicalProcessors": 0,
"numberOfProcessors": 0,
"pcSystemType": null,
"lastLoggedInUser": null,
"activationStatus": null,
"propertyCustomField": {
"computerproperty-textbox": "computer-text-updated"
}
}
]
}

Software Asset

Request

{
"type" : "SoftwareAsset",
"name" : "Software Asset Name Updated",
"customField" : {
"number" : 889,
"software-textbox" : "software-text-updated"
},
"assetPropertyList": [
{
"type": "SoftwareProperty",
"softwareCost": 500,
"propertyCustomField" : {
"softwareproperty-textbox" : "softwareproperty-text-updated"
}
}
]
}

Response

{
"type": "SoftwareAsset",
"id": 1,
"assetTypeName": "OS",
"assetId": "AST-3",
"name": "Software Asset Name Updated",
"impactName": "Low",
"statusName": "In Use",
"origin": "manual",
"acquitionDate": "15-08-2020",
"tags": [
"tag-1",
"tag-2"
],
"customField": {
"number": 889,
"software-textbox": "software-text-updated"
},
"createdDate": "19-10-2020 11:30",
"updatedDate": "19-10-2020 11:39",
"assetPropertyList": [
{
"id": 1,
"refName": "AST-3",
"type": "SoftwareProperty",
"softwareCost": 500,
"licenseKeys": [],
"executableFileNames": [],
"propertyCustomField": {
"softwareproperty-textbox": "softwareproperty-text-updated"
}
}
],
"installationStatus": false
}

Non-IT Asset

Request

{
"type" : "NonITAsset",
"name" : "Non IT Asset Name updated",
"usedByEmail": "john@motadata.com,jerry",
"customField" : {
"number" : 89,
"nonit-textbox" : "nonit-textbox-updated"
}
}

Response

{
"type": "NonITAsset",
"id": 1,
"assetTypeName": "Document",
"assetId": "AST-4",
"name": "Non IT Asset Name updated",
"impactName": "Low",
"statusName": "In Use",
"origin": "manual",
"usedByEmail": "john@motadata.com,jerry",
"acquitionDate": "15-08-2020",
"tags": [
"tag-1",
"tag-2"
],
"customField": {
"number": 89,
"nonit-textbox" : "nonit-textbox-updated"
},
"createdDate": "19-10-2020 11:33",
"updatedDate": "19-10-2020 11:37"
}