Update Notification Preferences
PUT/api/supplier-portal/me/notifications
Set which emails the signed-in user receives.
Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.
Body: preferences (required object of event => boolean; known events: po_sent, po_changed, reminders, payments — unknown keys are ignored, omitted events keep their current value), daily_digest (required, boolean). Returns the updated current user.
Authentication: supplier-portal bearer token. Every request re-checks the user and supplier: a deactivated user gets 401 with reason: user_inactive; a supplier whose portal was switched off (or that was archived) gets 401 with reason: portal_disabled.
Request
Responses
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.