Response ‒ Devices/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 |
---|
deviceId | String | A unique identifier that is automatically generated for this Device by IoT Platform . |
appId | String | The Application to which this Device belongs. This generated by IoT Platform and sent in the response to Applications/Post. |
createDate, createUser, updateDate,updateUser | | See Common Response Properties. |
Example JSON Devices/Post Response
Status 201 – Created
{
“@odata.context”: “https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Devices/$entity”,
“productId”: “5abb8cde21b5bb26b0a31463”,
“productName”: null,
“serialNumber”: null,
“groupId”: null,
“active”: false,
“firstTimeRegistrationDate”: “0001-01-01T00:00:00Z”,
“activationDate”: “0001-01-01T00:00:00Z”,
“commandsProtocol”: “Undefined”,
“isConnected”: false,
“hubId”: null,
“hubPrimaryKey”: “asdsda”,
“hubSecondaryKey”: “asdfasdf”,
“customId”: null,
“keepAliveThreshold”: 0,
“virtualDeviceStatus”: “NotAvailable”,
“virtualDeviceEvents”: null
“redisKey”: null,
“streamUrl”: null,
“parentId”: null,
“name”: “new device”,
“id”: “5abb916721b5bb26b0a314bd”,
“appId”: “801A048A-9F23-429F-BF0D-B6D35B22771E”,
“createDate”: “2018-03-28T12:58:15.6976815Z”,
“createUser”: null,
“updateDate”: “0001-01-01T00:00:00Z”,
“updateUser”: null,
“userDefinedLocation”: null,
“currentLocation”: null,
“coords”: null,
“ancestors”: [
{
“id”: “564117c213826b303c123456”,
“name”: “Gateway 5”
},
{
“id”: “564201c084a83518b8123456”,
“name”: “Fridge 23”
}
]
}