The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
PUT /thing/states HTTP/1.1
Host: api.4spaces.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"thingId":"00000000000000000000000000000000","states":[{"name":"String","value":"String"}],"properties":{"String":"String"},"version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"data":{"thingId":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","properties":{"String":{}},"states":{"String":[{"ts":-62135596800000,"value":"String"}]},"childThings":[{"thingId":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","properties":{"String":{}},"states":{"String":[{"ts":-62135596800000,"value":"String"}]},"childThings":[{"thingId":"00000000000000000000000000000000","organizationId":"00000000000000000000000000000000","properties":{"String":{}},"states":{"String":[{"ts":-62135596800000,"value":"String"}]},"childThings":[{}]}]}]},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}