Response ‒ Products/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 –
Status 201 – Created
Property | Type | Description |
---|
id | String | A unique Product identifier that is automatically generated for this user by IoT Platform . |
commands/commandId | | The unique identifier is created by IoT Platform for each command that you define in the Product/Post. |
createDate, createUser, updateDate, updateUser | | See Common Response Properties. |
Example JSON Products/Post Response
{“@odata.context”:”https://dev-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#Products/$entity”,
”urn”:null,”name”:”ExampleFridge”,”description”:null,”icon”:null,”customIdFormat”:null,”customIdDisplay”:false,
”customIdRequired”:true,”serialNumberFormat”:null,”serialNumberDisplay”:false,”serialNumberRequired”:false,
”active”:false,”keepAliveThreshold”:0,”defaultVirtualDeviceEvents”:null,”disconnectChildDevicesOnDisconnect”:false,
”connectChildDevicesOnConnect”:false,”disconnectGroupDeviceOnAllChildrenDisconnect”:false,”connectGroupDeviceOnAnyChildrenConnect”:false,
”onConnectCommandIds”:[],”manufacturer”:”TheFridgeMakingCompany”,”commandsProtocol”:”Undefined”,”commandsAddress”:null,
”commandsUrl”:null,”autoDiscoveryCommand”:null,”displayCommandsTab”:false,”onDeleteCommands”:[],”onPatchCommands”:[],
”displayDeviceSDKDetails”:false,”enableSDKFeatures”:false,”id”:”5bb0634719ec0c19c4596b49″,
”appId”:”801A048A-9F23-429F-BF0D-B6D35B22771E”,”createDate”:”2018-09-30T05:46:47.7900808Z”,”createUser”:”1234″,
”updateDate”:”0001-01-01T00:00:00Z”,”updateUser”:null,”commands”:[],”events”:[{“typeCode”:7,”description”:null,
”name”:”HowColdIsItRightNow”,”nameResourceKey”:””,”datatype”:null,”logicalType”:null,”displayType”:null,”unit”:null,
”retention”:0,”iconName”:null,”iconColor”:null,”isAccumulated”:false,”subject”:null,”fieldsCount”:null,”precision”:1,
”calculationId”:null,”defaultRollupMethod”:”Avg”,”valueRange”:{“minimum”:null,”maximum”:null,”precision”:0,”numericType”:null,
”step”:null,”allowedValues”:[],”ranges”:[]},”loggingSettings”:null,”aggregatedEventSettings”:null}],”additionalProperties”:[],
”mediaSettings”:null,”tooltip”:[]}