Get your free beta license ↗
API operation · auth group
PUT

/auth/notifications/{kind}

First published 3 Oct 20260.1.0Unchanged since publication

Set the caller's preference for one notification kind

Who may call it
AdministratorResellerCustomer
Token scope, any of
securityall
Answers200 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 server

Parameters

kindpath ·string, matching ^[a-z]+\.[a-z_]+$Required

Request body

JSON ·NotificationSwitch· 1 field
enabledbooleanRequired

Example

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 sentence
400--kind is required
400--user is required
400Invalid boolean
400Say --on or --off, one of them
400Unknown notification kind
400body is missing required field enabled
401Authentication required
403Notifications are the administrators'
404Unknown user <user>
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/