Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

Update your own notification preferences

Replaces the notification types the calling member muted. A muted type is left out of that member’s own list and unread count. It is still raised, still delivered to email, Slack, Discord and the webhook, and still shown to every other member. Needs notifications:write and a user. No role is needed. An API key has no user and answers 403 USER_IDENTITY_REQUIRED.

PATCH/api/v2/notifications/preferences/me
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Request body
requiredapplication/json
mutedTypesNotificationTypeName[]required

Notification types to leave out of your own list and unread count. Send an empty array to mute nothing.

max items 12
Responses
200

The calling member's own notification preferences returned.

successbooleanrequired
dataMyNotificationPreferencesrequired
Show properties
mutedTypesNotificationTypeName[]required
updatedAtstring<date-time> | nullrequired

Null until you save your preferences for the first time.

400

Bad Request - Invalid input data

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH 'https://api.anlyon.com/api/v2/notifications/preferences/me' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "mutedTypes": [
    "quota_warning"
  ]
}'
Response
{
  "success": true,
  "data": {
    "mutedTypes": [
      "quota_warning"
    ],
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}