Removing device registration.
To delete (unregister) a device from the database, send a DELETE request to the following endpoint with the device ID:
https://api.appery.io/rest/push/reg/<deviceId>
#Parameters The endpoint has the following parameters:
Parameter | Description |
---|---|
deviceId |
Unique device identifier. Required. |
X-Appery-App-Id |
Unique identifier of the Appery.io application. Required. |
Error responses
The endpoint might respond with the following error messages:
HTTP Status | Code | Description |
---|---|---|
400 |
PNDD002 |
App ID not specified |
404 |
PNDD006 |
Device ID: |
404 (400) |
PNDD015 |
Project GUID: |
400 |
PNDU960 |
Specified brand is not valid |
Example
This examples hows removing (unregistering) a device from the Devices collection.
curl -X DELETE
-H "Content-Type: application/json"
-H "X-Appery-App-Id: e51f973c-aad9-4102-9f39-349c25264277"
https://api.appery.io/rest/push/reg/356062053530044%3B9ec5fd0c3ade6681