Update a notification preference
curl --request PATCH \ --url https://example.com/api/v1/notifications/preferences/BUDGET_ALERT \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "discordEnabled": true, "emailDigest": "IMMEDIATE", "emailEnabled": true, "inAppEnabled": true }'Creates or updates the caller’s delivery preference for one notification type. Unknown types return 400.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Notification type to update.
Notification type to update.
Request Body
Section titled “Request Body”object
Responses
Section titled “Responses”The updated preference.
object
A member’s delivery preference for one notification type. Types without a stored row fall back to defaults.
object
Whether this type reaches the member as a Discord direct message. Absent on an older server. Discord messages reach only members who linked their Discord account.
Email digest frequency: IMMEDIATE, DAILY, or NEVER.
Notification type — one of the NotificationType enum values.
Example generated
{ "data": { "discordEnabled": true, "emailDigest": "example", "emailEnabled": true, "inAppEnabled": true, "memberId": "example", "notificationType": "example" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC