Remove Organisation Member
Remove a member from the organisation.
Authorization: members:manage, and the caller must hold every
permission of the member's role (403 permission_escalation), so no
one removes a member more privileged than themselves. A caller removing
themselves ("leave") skips that subset check. The organisation owner
cannot be removed, not even by themselves, since that would leave the
organisation without an owner-role member while Organisation.owner_id
still points at them - transfer ownership first. 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" } ]}