Remove Organisation Member
Remove a member from the organisation.
Authorization: caller must be an admin or owner, and may not remove a member whose role is equal to or higher than their own - except that a member may always remove themselves (self-removal / "leave org"), which bypasses the role-order check. This self-removal bypass does not apply to the organisation owner: the owner cannot remove themselves, since doing so would leave the organisation without an OWNER-role member while Organisation.owner_id still points at them - promote another member to owner first, which performs the handover atomically. Personal organisations have no members to remove.
Authorization
OAuth2AuthorizationCodeBearer AuthorizationBearer <token>
In: header
Path Parameters
org_id*Org Id
Format
uuiduser_id*User Id
Format
uuidQuery Parameters
verify_locally?Verify Locally
Default
trueResponse Body
application/json
curl -X DELETE "https://example.com/v1/organisations/497f6eca-6276-4993-bfeb-53cbbbba6f08/members/497f6eca-6276-4993-bfeb-53cbbbba6f08"Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}