Transfer ownership of the current team
POST
/v1/tenants/current/memberships/{membershipId}/ownership-transfersOwner only. In one transaction the member becomes an Owner and the caller an Admin; audited as tenant.ownership_transferred. The member must be active and not already an Owner (400 INVALID_ROLE_TRANSITION); a concurrent change to either membership is 409 and changes nothing.
curl -X POST 'https://api.embodiflow.io/v1/tenants/current/memberships/{membershipId}/ownership-transfers' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Path parameters
- membershipIdstringrequired
Responses
Success
- dataobjectrequired
- ownerMembershipIdstringrequired
- previousOwnerMembershipIdstringrequired
- previousOwnerRolestringrequiredAllowed valuesadmin
- metaobjectrequired
- requestIdstringrequired
Response example
{
"data": {
"ownerMembershipId": "string",
"previousOwnerMembershipId": "string",
"previousOwnerRole": "admin"
},
"meta": {
"requestId": "string"
}
}Servershttps://api.embodiflow.io/v1