---
title: "POST /api/workspaces/{workspace_id}/leave/"
method: POST
path: "/api/workspaces/{workspace_id}/leave/"
tags: ["Workspaces"]
---

# POST /api/workspaces/{workspace_id}/leave/

`POST /api/workspaces/{workspace_id}/leave/`

Makes the authenticated user leave the workspace related to the provided `workspace_id` if the user is in that workspace. If the user is the last admin in the workspace, they will not be able to leave it. There must always be one admin in the workspace, otherwise it will be left without control. If that is the case, they must either delete the workspace or give another member admin permissions first.

## Path parameters

- `workspace_id` integer, required

## Response `204`

No response body

## Other responses

- `400`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/versions/0c490e5b0c7f/schema)
