Set Registration Token for the device.
Errors
| Error Code | Error Type | Error Message |
|---|---|---|
| -1008 | MISSING-DEVICEID | deviceId field missing |
| -1035 | ERR_REG_TOKEN | Invalid deviceId or deviceType, RegistrationToken not updated |
A string to uniquely identify the application requesting the access token. If a user could feasibility login to two instances of the same application (eg. two organisations in the same CRM), each of these should provide a unique deviceId (eg. by appending the organisation ID to the name of the application). This ensures that separate access tokens are generated for each instance, so that, for example, logging out of one instance doesn't remove access from the other.
- Avanser Productionhttps://p3.avanser.com/app/setregistrationtoken
- AVANSER Mock Serverhttps://avanser.redocly.app/_mock/user-api/references/setregistrationtoken
curl -i -X POST \
'https://p3.avanser.com/app/setregistrationtoken?deviceId=string&device=string®istrationToken=string&fcmProjectId=string&token=YOUR_API_KEY_HERE'Registration token set.
The time that the API response left the server, represented as the number of seconds since the UNIX epoch.
The number of seconds that it took to process the API request.
Boolean indicating whether there was an error returned by the API request.
{ "timestamp": 1508903167, "exection": 0.00041531896591187, "error": false, "data": "OK" }