ルームの通知 ON/OFF

PUT/chat-rooms/:roomId/notifications

このチャットルームの通知(プッシュ・アプリ内通知・メール)を切り替えます。未読件数には影響しません(鳴らさないだけでバッジは増えます)。現在値はルーム詳細の自分のメンバー情報の notificationsEnabled から取得できます。

認証要ログイン

パスパラメータ

roomIdstring必須

チャットルーム ID。

リクエストボディ

enabledboolean必須

通知を受け取るかどうか。

リクエスト
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
}'
レスポンス例
{
"enabled": false
}