Example JSON Devices/Post
Example JSON Devices/Post Request
curl ‘https://api.axonize.com/odata/schemaDefinitions’ -H ‘Authorization: Your token’ -H ‘Content-Type: application/json;charset=UTF-8’ -H
‘appId: 9b96eab8-fa25-4549-925d-da8ecf9a1234’ –data-binary ‘{“jsonSample”:{“name”:”payload.json”,”content”:”{\”serial\”:\”1234\”,\”temp\”:34}”,
”updateDate”:”2019-12-17T15:08:20.115Z”},”parserType”:”JsonParser”,”schema”:[{“attributePath”:”serial”,”actionType”:”CustomId”,
”convertInfo”:{“functionType”:null,”parameters”:[]}},{“actionType”:”Event”,”event”:{“name”:”Temperature”,”typeCode”:7},”attributePath”:”temp”}],
”name”:”usfhzq”}’ –compressed
Example JSON Devices/Post Response
Status 201 – Created
{“@odata.context”:”https://10.10.2.103/odata/$metadata#SchemaDefinitions/$entity”,”name”:”usfhzq”,”parserType”:”JsonParser”,”id”:”5df8ef8be3b0c7194448030d”,
”appId”:”9b96eab8-fa25-4549-925d-da8ecf9a9b34″,”createDate”:”2019-12-17T15:08:59.5117694Z”,”createUser”:”1234″,
”updateDate”:”2019-12-17T15:08:59.5117694Z”,”updateUser”:”1234″,”schema”:[{“attributePath”:”serial”,”actionType”:”CustomId”,
”convertInfo”:{“functionType”:null,”parameters”:[],”customFunction”:null},”convertPipeline”:[],”event”:null,”patch”:null},
{“attributePath”:”temp”,”actionType”:”Event”,”convertInfo”:null,”convertPipeline”:[],”event”:{“name”:”Temperature”,”typeCode”:7,”unit”:null},”patch”:null}],
”options”:null,”jsonSample”:{“content”:”{\”serial\”:\”1234\”,\”temp\”:34}”,”name”:”payload.json”,”updateDate”:”2019-12-17T15:08:20.115Z”}}