Write Resources
IMPACT IoT sends a write JSON request using http POST to
/devices in the following format. When the write request is sent, the
Device responds with http status 200 OK. POST the write
command, status is sent asynchronously to /m2m/device.
The expected response for this write request is shown below. If correlatorId is
found in the write command then the same token along with its value must
be sent back in the response. The usage of requestStatus and
responseCode is explained in the Read Resources
section.
| Parameters | Description |
|---|---|
| URL | http://<adapter_hostname>:<port>/devices |
| Method | POST |
| Content-Type | application/json |
| Parameters |
The parameters are:
|
| Sample Call |
Response Body:
|
| Success Code |
Response Code: 200 |
| Error Code |
400 : Bad Request 401 : Unauthorized 403 : Forbidden 404 : Not Found |