devices_update
PUT
/api/devices/{registration_id}/
FCM/Devices
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/devices//' \
--data-urlencode 'registration_id=' \
--data-urlencode 'type='
Response Response Example
200 - Example 1
{
"id": 0,
"name": "string",
"registration_id": "string",
"device_id": "string",
"active": true,
"date_created": "2019-08-24T14:15:22Z",
"type": "ios"
}
Request
Path Params
registration_id
string
Registration token
Body Params application/x-www-form-urlencoded
name
string | null
optional
<= 255 characters
registration_id
string
Registration token
>= 1 characters
device_id
string | null
optional
<= 255 characters
active
boolean
Is active
Default:
true
Example:
true
type
enum<string>
required
ios
- iosandroid
- androidweb
- webAllowed values:
iosandroidweb