---
title: "Leave organization"
method: POST
path: "/organizations/{org_id}/leave"
tags: ["Organization Management"]
---

# Leave organization

`POST /organizations/{org_id}/leave`

Leave the organization as a member. Organization owners and repository owners cannot leave until they transfer ownership.

## Response `200`

Request completed successfully

## Other responses

- `400` — Bad request - user owns repositories in the organization
- `403` — Forbidden - user is organization owner or lacks permission
- `404` — The specified resource was not found
- `default` — An error occurred

---

[API](https://skmtc.dev/diversion/apis/diversion-core-api.md) · [All operations](https://skmtc.dev/diversion/apis/diversion-core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/diversion/diversion-core-api/revisions/38a18aba804b/schema)
