Update Portal User
PUT/api/supplier-portal/users/:user
Change a user's role or deactivate / reactivate them. Owner only.
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: role (optional: owner, member), status (optional: active, deactivated). Deactivating signs the user out everywhere at once. You cannot demote or deactivate yourself, and the supplier must always keep at least one active owner (422). A user who never accepted their invitation cannot be set to active — re-send the invitation instead.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Not Found
Response Headers
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.