User

Choose a push notification content template

Changed on

Choose a push notification content template

Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: default and alternative. Go to Settings > Chat > Push notifications > Push notification content templates on Sendbird Dashboard to customize the templates.

If the push_message_template property is specified when sending a message, the content template customized for the message takes precedence over the user's choice.

Note: Push notifications are only available for group channels.

https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template

put/v3/users/{user_id}/push/template

Request

  • Base URL
    https://api-APP_ID.sendbird.com
  • Auth
    none declared

Path parameters

user_idstring required

(Required)

Headers

api-tokenstring
Example:{{API_TOKEN}}

Request body

name'default' | 'alternative' required

Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default)

Response

Successful response

namestring

Example response

{
  "name": "name"
}

Changes

    • breaking

      added the new required request property

    • warning

      deleted the header request parameter Api-Token

    • info

      api operation id choosePushNotificationContentTemplate removed and replaced with chooseAPushNotificationContentTemplate

    • info

      added the new optional header request parameter api-token

    • info

      the header request parameter Api-Token became optional