> ## Documentation Index
> Fetch the complete documentation index at: https://platform.atlan.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspaces

> Every published workspaces operation, generated from the contract.

8 operations on `client.workspaces`.

Path parameters come first, positionally; the request body is last, as a plain
object. Method names are `snake_case` in Python and `camelCase` in
TypeScript, and resource names follow the same rule.

<CodeGroup>
  ```python Python theme={null}
  result = client.workspaces.archive(workspace_id)
  ```

  ```typescript TypeScript theme={null}
  const result = await client.workspaces.archive(workspace_id);
  ```
</CodeGroup>

## Operations

| Call                                           | Route                                                 | Does                               |
| ---------------------------------------------- | ----------------------------------------------------- | ---------------------------------- |
| `client.workspaces.archive(workspace_id)`      | `POST /registry/v1/workspaces/{workspace_id}/archive` | Archive a workspace                |
| `client.workspaces.bulk_create(body)`          | `POST /registry/v1/workspaces/bulk`                   | Bulk create workspaces             |
| `client.workspaces.create(body)`               | `POST /registry/v1/workspaces`                        | Create a workspace                 |
| `client.workspaces.delete(workspace_id)`       | `DELETE /registry/v1/workspaces/{workspace_id}`       | Delete a workspace and its subtree |
| `client.workspaces.export(workspace_id)`       | `GET /registry/v1/workspaces/{workspace_id}/export`   | Export a workspace                 |
| `client.workspaces.get(workspace_id)`          | `GET /registry/v1/workspaces/{workspace_id}`          | Get a workspace                    |
| `client.workspaces.list()`                     | `GET /registry/v1/workspaces`                         | List workspaces                    |
| `client.workspaces.update(workspace_id, body)` | `PATCH /registry/v1/workspaces/{workspace_id}`        | Update a workspace's labels        |

## Related

<CardGroup cols={2}>
  <Card title="How the client is organised" icon="list" href="/sdk/operations">
    Resources, call shapes, and errors.
  </Card>

  <Card title="Errors and retries" icon="triangle-exclamation" href="/developers/errors-and-retries">
    What the SDK raises, and which calls are safe to retry.
  </Card>
</CardGroup>
