Delete token
This request allows the client application to delete the token details generated for a group or for a specific token.
- If no adaptation layer is onboarded for the token, IMPACT IoT deletes the token and queues the payload for gateway consumption.
- If an adaptation layer is onboarded for the token but no devices are attached to it, IMPACT IoT deletes the token along with the onboarded adaptation layer and queues the payload for gateway consumption.
- If an adaptation layer is onboarded for the token and at least one devices is attached to it, nothing is deleted and a suitable response message is sent to the caller.
Delete token for group describes the API structure for the delete token event.
Title | Delete token for group |
---|---|
URL |
To delete a particular token: http://{impact_url}:{impactport}/m2m/token?groupName=<>&token=<> To delete a group with login user: http://{impact_url}:{impactport}/m2m/token?groupName=<> |
Method | DELETE |
Content-Type | application/json |
URL Params |
The following are the URL parameters:
|
Data Params |
The following are the data parameters:
|
Success Code |
Response Code: 202 |
Error Code |
401 : Unauthorized 403 : Forbidden 204 : No Content |
Sample Call | Curl:
Response message:
|
Notes |
The delete token API can not delete the token of an adaptation layer, if a device is onboarded with it. |