Change a member's role
OWNER-only. Multiple OWNERs per org are allowed — single-OWNER lock-out is not enforced by the API.
/api/organizations/{orgId}/members/{memberId}OWNER-only. Multiple OWNERs per org are allowed — single-OWNER lock-out is not enforced by the API.
Path Parameters
Organisation id (cuid)
Membership id (cuid) — NOT the user id
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://loading/api/organizations/string/members/string" \ -H "Content-Type: application/json" \ -d '{ "role": "ADMIN" }'List org members GET
VIEWER+ — every member sees the full roster. Role-change / remove are gated tighter on the `[memberId]` routes.
Remove a member or self-leave DELETE
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.