## 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. ### Body Parameters - `userId: string` ### Example ```http curl https://app.gitpod.io/api/gitpod.v1.OrganizationService/LeaveOrganization \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $GITPOD_API_KEY" \ -d '{ "userId": "f53d2330-3795-4c5d-a1f3-453121af9c60" }' ``` #### Response ```json {} ```