Updating device information (push tokens)
Update device information
PUT/api/v1/devicesHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
json |
JSON
| ||||||||
fcm_tokenoptional | string | FCM token for the device (used by all Android devices except Huawei) | |||||||
voip_tokenoptional | string | VOIP token for the device (used by all iOS devices for intercom calls) | |||||||
apn_tokenoptional | string | APN token for the device (used by all iOS devices for notification push instead of FCM) | |||||||
huawei_tokenoptional | string | Device token (used only for Huawei devices) |
Response | |||||||||
204 | Returns an empty body | ||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
422 | Returns a JSON object with an error, see Validation | ||||||||
JSON
|
Example | |||||||||
JSON
|