API operation · auth group
PUT
/auth/notifications/{kind}
First published 3 Oct 2026
0.1.0Unchanged since publicationSet the caller's preference for one notification kind
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityallAnswers200 OK
Set enabled to true or false for a kind returned by GET /auth/notifications. An unknown kind or a missing enabled field returns 400. The response contains the caller's updated preferences for all notification kinds and their email address.
As a command
Run as root on the serverParameters
kindpath ·string, matching ^[a-z]+\.[a-z_]+$RequiredenabledbooleanRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X PUT "$API/auth/notifications/profile" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"enabled": true
}'Response ·
200 OK{
"email": "alice@example.com",
"kinds": [
{
"default": 0,
"description": "text",
"enabled": true,
"kind": "profile",
"title": "text"
}
]
}Errors
9 errors, each a status and a sentence400--kind is required400--user is required400Invalid boolean400Say --on or --off, one of them400Unknown notification kind400body is missing required field enabled401Authentication required403Notifications are the administrators'404Unknown user <user>No error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/put-auth-notifications-kind/