API reference / Organizations and teams
Remove a member
DEL/v1/orgs/{orgId}/members/{userId}
Removes a person from the organization. An organization always keeps one active owner.
Before you call it
- Permission
members:manage - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
userIdpath, uuidrequired | A member's user id from the member list. |
Response 204
Removed
No body.
Errors to handle
| Code | What it means and what to do |
|---|---|
last_owner409 | an organization must keep at least one owner |
insufficient_rank403 | You tried to assign, invite or revoke a role ranked above your own. Ask a member with a higher role, usually the owner. |
Every error is a Problem document. Branch on code; quote request_id to support.