Write on the resource of an endpoint
Write on the resource of an endpoint reflects the API structure for the writing on the resource of an endpoint device. To write on a resource is generic api, but for different protocol devices the different values passed in may vary. See examples below.
Title | Write on the resource of an endpoint |
---|---|
URL | http://<impact_url>/m2m/endpoints/{serialNumber}/{resourcePath} |
Method | PUT |
Content-Type | application/json |
URL Params |
The following are the URL parameters:
|
Data Params |
requestId: [string]: Specifies the request ID provided in case of valid and accepted request msg:[string] : info/warning/error message |
Success Code |
Response Code: 202 |
Error Code |
400 : Bad Request 401 : Unauthorized 403 : Forbidden 404 : Not Found |
Sample Call | 1. Write on the resource of an endpoint with object ID. Curl: Response
Body:
2. Write on the resource of an endpoint with object ID and instance ID. Curl: Response
Body:
3. Write on the resource of an endpoint with object ID, Instance ID, and resource ID. Curl: Response
Body:
4. Write on the resource of an endpoint with object ID, instance ID, resource ID, and resource Instance ID. Curl: Response
Body:
|
Notes |
None |