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"认证
每个请求都需要携带个人访问令牌(PAT)。
- Authorization: Bearer PAT
路径参数
- membershipIdstring必填
响应
Success
- dataobject必填
- ownerMembershipIdstring必填
- previousOwnerMembershipIdstring必填
- previousOwnerRolestring必填可选值admin
- metaobject必填
- requestIdstring必填
响应示例
{
"data": {
"ownerMembershipId": "string",
"previousOwnerMembershipId": "string",
"previousOwnerRole": "admin"
},
"meta": {
"requestId": "string"
}
}服务器https://api.embodiflow.io/v1