API reference / Organizations and teams
Transfer ownership
POST/v1/orgs/{orgId}/transfer-ownership
Makes another active member an owner and steps the calling owner down to the admin role.
Before you call it
- Permission
org:transfer_ownership - 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. |
Request body
| Field | What it does |
|---|---|
user_idstring (uuid)required | No description in the spec yet. |
Response 200
The new owner
| Field | What it does |
|---|---|
user_idstring (uuid)required | No description in the spec yet. |
emailstringrequired | No description in the spec yet. |
first_namestringrequired | No description in the spec yet. |
last_namestringrequired | No description in the spec yet. |
role_keystringrequired | No description in the spec yet. |
role_namestringrequired | No description in the spec yet. |
statusenumrequired | No description in the spec yet. One of |
joined_atstring (date-time)required | No description in the spec yet. |
Errors to handle
| Code | What it means and what to do |
|---|---|
cannot_transfer_to_self422 | choose another member to become the owner |
not_a_member422 | that person is not an active member of this customer |
Every error is a Problem document. Branch on code; quote request_id to support.