Update push notification preferences for a channel
You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background.
Note: Push notifications are only available for group channels.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Name | Type | Description |
---|---|---|
user_id | string | Specifies the unique ID of a user. |
channel_url | string | Specifies the URL of a group channel. |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
push_trigger_option | string | The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: |
| boolean | (Deprecated) Determines whether notification messages for the user are delivered to the group channel. (default: |
Optional | Type | Description |
---|---|---|
push_sound | string | Specifies the name of a sound file to be played when a notification is delivered to the specified channel. |
Responses
If successful, this action returns push preferences for a channel in the response body.
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.