Chat
Toggle room notifications
PUT
/chat-rooms/:roomId/notificationsTurn notifications (push, in-app and email) on or off for this chat room. Unread counts are unaffected — the badge still increases, you just are not notified. The current value is available as notificationsEnabled on your member entry in the room detail response.
| Auth | Login required |
|---|
Path parameters
roomIdstringrequiredChat room ID.
Request body
enabledbooleanrequiredWhether to receive notifications.
Response
| Field | Type | Description |
|---|---|---|
enabled | boolean | Whether notifications are on after the change. |
Request
curl https://api.4s.link/chat-rooms/ROOM_ID/notifications \-X PUT \-H "Authorization: Bearer 4s_at_..." \-H "Content-Type: application/json" \-d '{"enabled": false}'
Example response
{"enabled": false}