organization-members
Deactivate an organization member
Changed onDeactivate a member (set is_active=False).
Guards:
- Cannot deactivate own membership (self-lockout prevention).
- Cannot deactivate the last active admin (org lockout prevention).
Idempotency: deactivating an already-inactive member is a no-op success.
post/organization-members/{user_id}/deactivate/
Request
- The document declares no server URL.
- Auth: one of:
- HTTP bearer
- API key in cookie sessionid
Path parameters
user_idstring required
Headers
X-Organization-Idstring
Selects the active organization for this request. Optional for callers that belong to exactly one active organization — the single membership is resolved implicitly. Required when the caller has two or more active memberships; omitting it in that case returns 400. If the header names an organization the caller is not an active member of, the server returns 403.
Request body
Response
Changes
- ▲
removed the required property
from the response with the status - ○
added the required property
to the response with the status
- ▲