cURL
curl --request PUT \ --url http://localhost:8091/api/servers/{serverID}/channels/{channelID}/notification-preferences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "level": "all", "mutedUntil": "2023-11-07T05:31:56Z", "quietStart": "<string>", "quietEnd": "<string>" } '
Sets or updates the notification preference for a specific channel, overriding the server-level preference.
Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Server ID
Channel ID
Notification level
all
mentions
nothing
Mute notifications until this timestamp
Quiet hours start time in HH:MM format
Quiet hours end time in HH:MM format
Channel notification preference set