device-tokens

Update device token

Update an existing device token

patch/device-tokens/{id}

Path parameters

idnumber required
Example:1

Device token ID

Request body

device_tokenstring

New Firebase device token

device_type'iOS' | 'android' | 'web' | 'unknown'

Device type

app_versionstring

App version

os_versionstring

OS version

is_activeboolean

Enable notifications

Example request

{
  "device_token": "fcm_token_here_very_long_string_from_firebase",
  "device_type": "android",
  "app_version": "1.0.1",
  "os_version": "Android 13"
}

Response

Device token updated successfully

device_token_idnumber required

Device token ID

user_idstring required

Member ID

member_acc_idstring

External account ID

phone_number_idstring

Phone number identifier

device_tokenstring required

Firebase device token

device_type'iOS' | 'android' | 'web' | 'unknown' required

Device type

app_versionstring

App version

os_versionstring

OS version

is_activeboolean required

Enable notifications

created_atstring date-time required

Creation timestamp

updated_atstring date-time required

Last update timestamp

last_used_atstring date-time

Last used timestamp

Example response

{
  "device_token_id": 1,
  "user_id": "user123",
  "member_acc_id": "ACC123456",
  "phone_number_id": "PHONE789",
  "device_token": "fcm_token_here_very_long_string_from_firebase",
  "device_type": "android",
  "app_version": "1.0.0",
  "os_version": "Android 13",
  "is_active": true,
  "created_at": "2024-01-01T10:00:00.000Z",
  "updated_at": "2024-01-01T10:00:00.000Z",
  "last_used_at": "2024-01-01T10:00:00.000Z"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.