Leave the current team
DELETE
/v1/tenants/current/memberships/meEnds the caller's own membership of the current team, revokes its tokens and moves its sessions to another team. Browser session only (a token cannot end its owner's membership). The last Owner cannot leave: 409 LAST_OWNER_PROTECTION.
curl -X DELETE 'https://api.embodiflow.io/v1/tenants/current/memberships/me' \
-H "Authorization: Bearer $EMBODIFLOW_PAT"Authorization
Send a personal access token with every request.
- Authorization: Bearer PAT
Responses
Success
- dataobjectrequired
- removedbooleanrequiredAllowed valuestrue
- metaobjectrequired
- requestIdstringrequired
Response example
{
"data": {
"removed": true
},
"meta": {
"requestId": "string"
}
}Servershttps://api.embodiflow.io/v1