Device de-registration from the Adapter

When the Adapter reports that the device is no longer available to IMPACT (for example, device factory reset), the Adapter sends a De-register operation to IMPACT. Upon receiving this message, IMPACT removes the registration information.

Table 1. Device de-registration from Adapter API format
Parameters Device de-registration API format
URL http://<impact_hostname>:<port>/m2m/device
Method POST
Content-Type application/json
Parameters

The parameters are:

  • de-register - This has the internal JSON that represents the device de-registration payload.
  • device/0/endPointClientName - Specifies the device serial number.
Sample Call
{
"de-register":{
	"device/0/endPointClientName":"6npn1RTUtG"
	}
}

Response Body:

{
"msg": "Success"
}
Success Code
Response Code: 201 Created
Error Code
400 : Bad Request
401 : Unauthorized 
403 : Forbidden 
404 : Not Found