Members
Remove a member or self-leave
Two shapes — self-leave (any role, including last OWNER which triggers ownership transfer to the next-oldest ADMIN) or remove-other (OWNER-only). Personal Space leave is rejected. Sole-member leave is rejected — the route surface answer is to delete the org instead.
DELETE
/api/organizations/{orgId}/members/{memberId}Two shapes — self-leave (any role, including last OWNER which triggers ownership transfer to the next-oldest ADMIN) or remove-other (OWNER-only). Personal Space leave is rejected. Sole-member leave is rejected — the route surface answer is to delete the org instead.
Path Parameters
orgId*string
Organisation id (cuid)
memberId*string
Membership id (cuid)
Response Body
curl -X DELETE "https://loading/api/organizations/string/members/string"Empty
Empty
Empty
Empty
Empty