Device deletion from IoT application

The previous chapter details the case when a device is removed from the platform by the Adapter. If a device has been added by the IoT application server, then IMPACT notifies the Adapter about the device deletion when it is removed by the IoT application server.

Notification is performed by the DeleteEndPointRequest API, which contains the following:

Table 1. Device deletion API format
Parameters Description
URL http://<impact_url>/m2m/device
Method DELETE
Content-Type application/json
Parameters

The parameters are:

  • payload - This parameter contains the serial number, which is the unique identifier of the device.
  • groupId Specifies the internal tenant id used by the device.
Sample call
{
    "DeleteEndPointRequest": 
{
    "payload": {"serialNumber":"UAT002"},
    "groupId":412
}
}

Response Body:

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