Notifications
Update notification settings
Changed onThis endpoint updates a user's notification settings for the project. Corresponds to liveblocks.updateNotificationSettings.
post/users/{userId}/notification-settings
Request
- Base URL: https://api.liveblocks.io/v2
- URL: https://api.liveblocks.io/v2/users/{userId}/notification-settings
- Auth: none declared
Path parameters
userIdstring required
ID of the user
Example:user-123
Request body
Example request
{
"email": {
"thread": true,
"textMention": false
},
"slack": {
"textMention": false
},
"webPush": {
"thread": true
}
}Response
Success. Returns the updated notification settings.
Example response
{
"email": {
"thread": true,
"textMention": false,
"$customNotification": true
},
"slack": {
"thread": true,
"textMention": true,
"$customNotification": false
},
"teams": {
"thread": false,
"textMention": true,
"$customNotification": true
},
"webPush": {
"thread": true,
"textMention": true,
"$customNotification": false
}
}Changes
- breaking
request body became required
- info
api operation id
post-users-userId-notification-settingsremoved and replaced withupdate-notification-settings
- breaking
- info
endpoint added
- info