Response ‒ Audits/Post
All the same properties in the request are returned in the response. In addition, the response that is returned also contains the following properties:
Property
Type
Description
id
String
A unique identifier automatically generated for this audit entry by IoT Platform .
isSuccessful
Boolean
Specifies whether the request was successful or not based on the status code in the response.
result
String
Specifies a string representing the status code of the response. For example, OK or BadRequest.
createDate, createUser, updateDate, updateUser
See Common Response Properties.
Example JSON Audits/Post Response
Status 201 – Created
{
“@odata.context”: “https://stg-axonizeapi-axonize.stg-ase-axonize.p.azurewebsites.net/odata/$metadata#Audits/$entity”,
“entityName”: “device123”,
“entityId”: “1321233231123”,
“action”: ” CreateDevice “,
“category”: “Devices”,
“userEmail”: “System”,
“userId”: null,
“requestDateTime”: “2018-06-17T11:55:01.8164737Z”,
“responseDateTime”: “2018-06-17T11:55:02.0196423Z”,
“application”: “fcm2m”,
“tenant”: “5851631d4e41925b98f08e13”,
“correlationId”: “a4d94269-9847-4842-91de-663735e3ded5”,
“ip”: “52.233.142.182”,
“isSuccessful”: false,
“result”: “BadRequest”,
“requestDurationMs”: 203.1686,
“requestUrl”: “https://stg-axonizeapi-axonize.stg-ase-axonize.p.azurewebsites.net/odata/Devices/SendCommandToMultipleDevices”,
“actionDisplay”: “msg_audit_sendcommandtomultipledevices”,
“categoryDisplay”: “msg_audit_devices”,
“userName”: null,
“roles”: [
“systemadmin”
],
“sourceName”: null,
“sourceType”: “Unknown”,
“id”: “5b264c16e5cdcf55dc9805b8”,
“appId”: “be517433-c4b8-4788-9258-1ba220435d63”,
“createDate”: “2018-06-17T11:55:02.035Z”,
“createUser”: null,
“updateDate”: “0001-01-01T00:00:00Z”,
“updateUser”: null,
“additionalInfo”: [
{
“key”: “commandId”,
“value”: “5a966c3e71da9b06b0f932e4”
},
{
“key”: “deviceIds”,
“value”: “[\r\n \”5859b09b983df8100836aba1\”\r\n]”
}
]
}