cURL
curl --request PUT \ --url http://localhost:8091/api/servers/{serverID}/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 the entire server.
Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Server 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
Server notification preference set