POST public-api/assets/saveLdapModelsByAssetSerialNumber

A public API created primarily for use with our LDAP sync tool. This API takes a list of asset models and matches each one to an existing asset by asset serial number. By default it only updates the assets it matches: it does not create assets that are absent from the system, and it does not delete assets that are absent from the list. That default is overridden by the optional CommandWord entry carried in each model.



Request Information

URI Parameters

None.

Body Parameters

Collection of Dictionary of Object [key] and Object [value]

Request Formats

application/json

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.




Response Information

Resource Description

WaspResultOfListOfInvariantCultureIgnoreCaseDictionary
NameDescriptionTypeAdditional information
Data

Collection of Dictionary of Object [key] and Object [value]

None.

Messages

Collection of WtResult

None.

BatchNumber

integer

None.

HasError

boolean

None.

HasHttpError

boolean

None.

HasMessage

boolean

None.

HasSuccessWithMoreDataRemaining

boolean

None.

TotalRecordsLongCount

integer

None.

Response Formats

application/json

Sample:
{
  "Data": null,
  "Messages": [
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    },
    {
      "ResultCode": 0,
      "Message": "sample string 1",
      "HttpStatusCode": 200,
      "FieldName": "sample string 2"
    }
  ],
  "BatchNumber": 1,
  "HasError": false,
  "HasHttpError": false,
  "HasMessage": true,
  "HasSuccessWithMoreDataRemaining": false,
  "TotalRecordsLongCount": 1
}