Deleting codes
After deleting access codes, a push notification will be sent to the user's WebSocket channel (user.{ID}) with an array of the deleted code IDs. The push notification will not be sent to the device that made this request.
DELETE/api/v1/intercom/codesHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
idsrequired | array | Provide an array of access code IDs to delete, with a maximum of 200 codes per request |
Response | |||||||||
204 | Successful response | ||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|