EndpointsNotificationsNotificationsPreferences
Update personal notification preferences
The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.
PATCH
External channels default off and must be explicitly enabled. Destination URLs remain server environment variables and are never accepted by this endpoint.
adminSessioncookie
authjs.session-token<token>Authenticated Auth.js browser session cookie; each operation declares its required permission. Not restricted to administrators. HTTPS deployments use the secure-prefixed cookie variant.
X-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
enabledEventTypes?array<>Items
items <= 4frequency?stringValue in
"daily""immediate"digestHour?integerRange
0 <= value <= 23timezone?stringLength
length <= 80locale?stringValue in
"en""de"cooldownHours?integerRange
1 <= value <= 720lowStockThresholdPercent?integerRange
1 <= value <= 500expiryWindowDays?integerRange
0 <= value <= 3650expiryFieldKey?stringMatch
^[a-z][a-z0-9_]{0,63}$Length
length <= 64maintenanceWindowDays?integerRange
0 <= value <= 3650maintenanceFieldKey?stringMatch
^[a-z][a-z0-9_]{0,63}$Length
length <= 64returnDueWindowDays?integerRange
0 <= value <= 365emailEnabled?booleanDefault
falsepushEnabled?booleanDefault
falseslackEnabled?booleanDefault
falseteamsEnabled?booleanDefault
falsewebhookEnabled?booleanDefault
falsePreferences updated
curl -X PATCH 'https://inventory.example.com/api/v1/notifications/preferences' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
Empty