Transfer organization ownership
Transfers organization ownership to another member. The current owner will become an admin and keep all other roles. The new owner will receive the owner role while keeping their existing roles. Only the current organization owner can.
Request body
Example request
{
"newOwnerId": "mem_xyz789",
"userId": "usr_abc123def456"
}Response
Not found - Organization or member not found
Forbidden - Only organization owner can transfer ownership
Unauthorized - Invalid or missing authentication
Bad request - Invalid input
Ownership transferred successfully
Example response
{
"success": true,
"message": "Ownership transferred successfully",
"currentOwner": {
"memberId": "mem_abc123",
"previousRoles": [
"owner",
"employee"
],
"newRoles": [
"admin",
"employee"
]
},
"newOwner": {
"memberId": "mem_xyz789",
"previousRoles": [
"admin"
],
"newRoles": [
"admin",
"owner"
]
}
}Changes
Changed in 2 of the 56 revisions of this API.2
- ○
the endpoint scheme security
oauth2was removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
oauth2was added to the APIapi-security-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○