push-notification

Create Or Update Push Notification

Create or update a device token for push notifications. If device_id already exists for the user_id, it will update the existing record. Otherwise, it will create a new record.

post/push-notification/create-update/{user_id}/

Path parameters

user_idinteger required

Request body

device_idstring nullable
fcm_tokenstring nullable
platformstring nullable
versionstring nullable

Example request

{
  "device_id": "device-uuid-12345",
  "fcm_token": "fcm-token-string",
  "platform": "iOS",
  "version": "1.0.0"
}

Response

Successful Response

{"stackTrail":"paths:/push-notification/create-update/{user_id}/:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

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