Skip to main content

POST Create an Asset

URL: BaseURL/api/v1/asset

Asset Field Table

note

Keys with asterisk are mandatory.

Field NameField TypeField CategoryDetail Specification
assetIdStringHardware,Software,Non-ITThis field is only for view.
assetTypeName*StringHardware,Software,Non-ITIn request assetTypeName should be given by bifurcating hierarchical relation with “$” sign. Eg.hardware$computer.
name*StringHardware,Software,Non-IT
type*StringHardware,Software,Non-ITTo differentiate the request is of which type i.e HardwareAsset , SoftwareAsset, NonITAsset.
impactNameStringHardware,Software,Non-IT
statusNameStringHardware,Software,Non-IT
vendorNameStringHardware,Software,Non-IT
productNameStringHardware,Software,Non-IT
departmentNameStringHardware,Software,Non-IT
usedByEmailEmailHardware,Software,Non-IT
acquitionDateString (In above mentioned date format)Hardware,Software,Non-IT
categoryNameStringHardware,Software,Non-ITCategory name
managedByEmailEmailHardware,Software,Non-IT
managedByGroupNameStringHardware,Software,Non-ITManage Group Name
assetGroupNameStringHardware,Software,Non-ITAsset Group Name
locationNameStringHardware,Software,Non-IT
barCodeStringHardware,Software,Non-IT
tagsSet of StringHardware,Software,Non-IT
assignmentDateString (In above mentioned date format)Hardware,Software,Non-IT
businessServiceNameStringHardware,Software,Non-IT
customFieldKey-Value PairHardware,Software,Non-IT
descriptionStringHardware,Software,Non-IT
assetPropertyListList of Key-Value PairHardware,Software,Non-ITList of Asset property group associate with an asset.
ipAddressStringHardware
hostNameStringHardware
macAddressStringHardware
swTypeNameStringSoftwareSoftware Type Name
swCategoryNameStringSoftwareSoftware Category Name
installationStatusBooleanSoftwaretrue/false
versionStringSoftware

Asset property Group Field Table

Hardware Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Hardware Property.
serialNumberString
warrentyExpirationDateString
auditDateString (In above mentioned date format)
propertyCustomFieldKey-Value Pair

Computer Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Computer Property.
osNameString
osVersionString
servicePackNameString
osLicenceKeyString
osManufacturerNameString
osArchitectureStringosArchitecture should be bit_64 / bit_32 / all
bootupStateString
memorySizeNumberMemory size should be in GB
diskSizeNumberDisk size should be in GB
cpuSpeedNumberCPU Speed should be in GHz
cpuCoreCountNumber
partOfDomainBooleantrue/false
domainNameString
numberOfLogicalProcessorsNumber
numberOfProcessorsNumber
pcSystemTypeString
activationStatusString
lastLoggedInUserStringName of Last Logged In User
propertyCustomFieldKey-Value Pair

SNMP Property Group Table

Field NameField TypeDetail Specification
type *String
systemOIDStringType should be SNMP Property.
systemUpTimeNumbersystemUpTime Should be in minutes
firmwareString
firmwareVersionString
portNumber
contactNameString
manufacturerNameString
propertyCustomFieldKey-Value Pair

Storage Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Storage Property.
driveTypeString
diskSpaceNumberDisk Space should be in GB.
freeSpaceNumberFree Space should be in GB.
freeSpaceCheckedOnString (In above mentioned date format)
propertyCustomFieldKey-Value Pair

UPS Property Table

Field NameField TypeDetail Specification
type *StringType should be UPS Property.
modelNameString
batteryVoltageString
batteryCurrentString
batteryCapacityString
capacityString
voltageString
powerString
propertyCustomFieldKey-Value Pair

Firewall Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Firewall Property.
firmwareString
firmwareVersionString
portNumber
subnetMaskString
propertyCustomFieldKey-Value Pair

Mobile Device Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Mobile Device Property.
osString
osVersionString
memoryNumberMemory should be in GB.
IMEINumberString
propertyCustomFieldKey-Value Pair

Rack Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Rack Property.
footPrintString
powerConsumptionString
rackUnitsNumber
rackUnitsInUseNumber
propertyCustomFieldKey-Value Pair

Software Property Group Table

Field NameField TypeDetail Specification
type *StringType should be Software Property.
licenseExpiryDateString (In above mentioned date format)
licenceTypeNameStringLicense Type Name
softwareCostNumber
lastAuditDateString (In above mentioned date format)
licenseKeysSet of String
executableFileNamesSet of String
propertyCustomFieldKey-Value Pair

Example (Request & Response)

Hardware Asset

Request

{
"type" : "HardwareAsset",
"assetTypeName" : "hardware$computer",
"name" : "Hardware Asset Name",
"acquitionDate" : "15-08-2020 13:34",
"categoryName": "Restricted",
"tags" : [
"tag-1",
"tag-2"
] ,
"customField" : {
"Custom field name" : "value",
"Custom field name " : "value"
},
"assetPropertyList": [
{
"type": "HardwareProperty",
"field name": "field value",
"propertyCustomField" : {
"Custom field name" : "value",
"Custom field name " : "value"
}
},
{
"type": "ComputerProperty",
"field name": "field value",
"propertyCustomField" : {
"Custom field name" : "value",
"Custom field name " : "value"
}
}
]
}

Response

{
"type": "HardwareAsset",
"id": 1,
"assetTypeName": "Computer",
"assetId": "AST-1",
"name": "Hardware Asset Name",
"impactName": "Low",
"statusName": "In Use",
"origin": "manual",
"acquitionDate": "15-08-2020",
"tags": [
"tag-1",
"tag-2"
],
"customField": {
"hardware-textbox": "hardware-text",
"number": 88
},
"categoryName": "Restricted",
"createdDate": "19-10-2020 11:23",
"updatedDate": "19-10-2020 11:23",
"assetPropertyList": [
{
"id": 1,
"refName": "AST-1",
"type": "ComputerProperty",
"osName": "Windows",
"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"
}
}
]
}

Software Asset

Request

{
"type" : "SoftwareAsset",
"assetTypeName" : "software$os",
"name" : "Software Asset Name",
"acquitionDate" : "15-08-2020 13:34",
"categoryName": "Restricted",
"tags" : [
"tag-1",
"tag-2"
],
"customField" : {
"number" : 88,
"software-textbox" : "software-text"
},
"assetPropertyList": [
{
"type": "SoftwareProperty",
"softwareCost": 700,
"propertyCustomField" : {
"softwareproperty-textbox" : "softwareproperty-text"
}
}
]
}

Response

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

Non-IT Asset

Request

{
"type" : "NonITAsset",
"assetTypeName" : "non it assets$document",
"name" : "Non IT Asset Name",
"acquisitionDate" : "15-08-2020 13:34",
"categoryName": "Restricted",
"tags" : [
"tag-1",
"tag-2"
],
"customField" : {
"number" : 88,
"nonit-textbox" : "nonit-textbox"
}
}

Response

{
"type": "NonITAsset",
"id": 1,
"assetTypeName": "Document",
"assetId": "AST-4",
"name": "Non IT Asset Name",
"impactName": "Low",
"statusName": "In Use",
"origin": "manual",
"acquitionDate": "15-08-2020",
"tags": [
"tag-1",
"tag-2"
],
"customField": {
"number": 88,
"nonit-textbox" : "nonit-textbox"
},
"categoryName": "Restricted",
"createdDate": "19-10-2020 11:33",
"updatedDate": "19-10-2020 11:33"
}