/users

Upsert FCM token

Changed on

Upserts a Firebase Cloud Messaging token for the caller. Dedupes on token; if token exists, updates last_used_timestamp. | (FirebaseCloudMessagingTokenClientCreate1) -> (UserPrivateData1)

put/users/user_private_data/firebase_cloud_messaging_token/v1

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/users/user_private_data/firebase_cloud_messaging_token/v1
  • Auth
    HTTP bearer

Request body

firebase_cloud_messaging_tokenstring required
platform'android' | 'ios' | 'web'

Response

Successful Response

schema_version1 required
created_at_timestampstring date-time required
user_idstring required

Must be a string starting with user_

namestring nullable
primary_email_addressstring email nullable
phone_numberstring phone nullable
time_zonestring nullable

IANA time zone name (e.g. America/New_York).

_idstring required

Example response

{
  "time_zone": "America/New_York"
}

Changes