---
title: "LeaveOrganization"
method: POST
path: "/gitpod.v1.OrganizationService/LeaveOrganization"
tags: ["gitpod.v1.OrganizationService"]
---

# LeaveOrganization

`POST /gitpod.v1.OrganizationService/LeaveOrganization`

Removes a user from an organization while preserving organization data.

 Use this method to:
 - Remove yourself from an organization
 - Clean up inactive memberships
 - Transfer project ownership before leaving
 - Manage team transitions

 ### Examples

 - Leave organization:

   Removes user from organization membership.

   ```yaml
   userId: "f53d2330-3795-4c5d-a1f3-453121af9c60"
   ```

 Note: Ensure all projects and resources are transferred before leaving.

## Request body

- GitpodV1LeaveOrganizationRequest
  - `userId` string, uuid, required

## Response `200`

Success

- GitpodV1LeaveOrganizationResponse

## Other responses

- `default` — Error

## Changes

> 18 revisions in range; 1 could not be searched.

- **2025-02-18** `cd6a05ae99d2` — 1 warning
  - removed the optional property `detail` from the response with the `default` status
- **2025-02-14** `988164042da1` — 1 breaking
  - the request property `userId` became required

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.OrganizationService/LeaveOrganization/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
