Fuselage
Save Room Notification
Sets the notifications settings of specific channel.
URL
Requires Auth
HTTP Method
/api/v1/rooms.saveNotification
yes
POST

Payload

Argument
Example
Required
Description
roomId
5of4weEXaH7yncxz9
Required
The channel's id
notifications.desktopNotifications
nothing
Optional: 'nothing', 'all', 'mentions', 'default'
The value for desktop notifications
notifications.disableNotifications
'0'
Optional: '0' or '1'
The value to disable/enable channel's notifications.
notifications.emailNotifications
nothing
Optional: 'nothing', 'all', 'mentions', 'default'
The value for email notifications.
notifications.audioNotifications
nothing
Optional: 'nothing', 'all', 'mentions', 'default'
The value for audio notifications.
notifications.mobilePushNotifications
nothing
Optional: 'nothing', 'all', 'mentions', 'default'
The value for mobile push notifications.
notifications.audioNotificationValue
beep
Optional
The value for audio notification sound.
notifications.desktopNotificationDuration
'0'
Optional
The value for desktop notification duration.
notifications.unreadAlert
nothing
Optional: 'nothing', 'all', 'mentions', 'default'
The value for unread alerts notifications.
notifications.hideUnreadStatus
'0'
Optional: '0' or '1'
The value to disable/enable number of unread messages.

Example payload

1
{
2
"roomId": "5of4weEXaH7yncxz9",
3
"notifications" :{
4
"desktopNotifications": "all",
5
"disableNotifications": "0",
6
"emailNotifications": "nothing",
7
"audioNotificationValue": "beep",
8
"desktopNotificationDuration": "2",
9
"audioNotifications": "all",
10
"unreadAlert": "nothing",
11
"hideUnreadStatus": "all",
12
"mobilePushNotifications": "mentions"
13
}
14
}
Copied!

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
-H "Content-type: application/json" \
4
http://localhost:3000/api/v1/rooms.saveNotification \
5
-d '{"roomId": "5of4weEXaH7yncxz9", "notifications" :{ "desktopNotifications": "all", "disableNotifications": "0", \
6
"emailNotifications": "nothing", "audioNotificationValue": "beep", "desktopNotificationDuration": "2", "audioNotifications": "all", \
7
"unreadAlert": "nothing", "hideUnreadStatus": "all", "mobilePushNotifications": "mentions"} }'
Copied!

Example Result

1
{
2
"success": true
3
}
Copied!

Change Log

Version
Description
0.63.0
Added
Last modified 3mo ago
Export as PDF
Copy link
Edit on GitHub