Set the user's notification preferences

Fully replaces the user's stored email/push notification opt-ins. A
caller may only update their own record: if {userId} is not the
authenticated user's id the request is rejected with 403. This
endpoint never changes notificationsLastSeen — use
PATCH /notification/user/{userId} for that.

The write is an upsert, so it succeeds for a user who has no
notifications.preferences row yet (rows are otherwise seeded on first
subscription).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int64
required

Numeric Pennsieve id of the user. Must be the caller's own id; any other value is rejected with 403.

Body Params

Fully replaces the user's stored email/push preferences. Both fields are required; this never changes notificationsLastSeen (see UpdateNotificationsLastSeenRequest for that).

boolean
required
boolean
required
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json