Stop Notifications

When monitoring of a resource is no longer required, IMPACT sends a JSON object to stop monitoring. The content is sent as a POST /devices.

Table 1. Stop notifications API format
Parameters Description
URL http://<adapter_hostname>:<port>/devices
Method POST
Content-Type application/json
Parameters

The parameters are:

  • resource - Specifies the Device resource.
  • string - Specifies the resource value, which is STOP_OBSERVE for this API.
  • endPointClientNames - Specifies the Device Id.
Sample Call
{
	"write":[{
		"string":"STOP_OBSERVE",
		"resource":"device/0/battery",
		"endPointClientNames":["TTo1AZliuT","asdfgh"],
	}],
}

Response Body:

{
"msg": "Success","code":1000
}
Success Code
Response Code: 200
Error Code
400 : Bad Request
401 : Unauthorized 
403 : Forbidden 
404 : Not Found