Qyra
ReferenceMy Account

Leave organization

Remove the current user from their organization. Fails if the caller is the only admin remaining. The user record is preserved so they can join another organization later.

DELETE/api/v1/user/me/leaveOrganization

Authentication: personal access token. The spec defines an api_key security scheme — send an Authorization: ApiKey <your-personal-access-token> header (value format: ApiKey <your key>). A session_cookie scheme (connect.sid) exists for browser sessions. Operations in this spec declare security: [], an artifact of the upstream spec generator — authentication is still enforced by the server.

Responses

200 — Ok

{
  "results": "string",
  "status": "ok"
}

default — Error

{
  "error": {
    "data": "string",
    "message": "string",
    "name": "string",
    "statusCode": 0
  },
  "status": "error"
}