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

# Update Workspace

> Update workspace details

## Overview

Updates the name or other details of an existing workspace.

## Path Parameters

<ParamField path="id" type="integer" required>
  The workspace ID to update
</ParamField>

## Request Body

<ParamField body="name" type="string">
  New name for the workspace
</ParamField>

## Response

<ResponseField name="workspace" type="object">
  The updated workspace object
</ResponseField>

<ResponseField name="status" type="string">
  Request status (`success`)
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://app.drime.cloud/api/v1/workspace/1873 \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Renamed Workspace"
    }'
  ```

  ```javascript JavaScript theme={null}
  const workspaceId = 1873;

  const response = await fetch(
    `https://app.drime.cloud/api/v1/workspace/${workspaceId}`,
    {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        name: 'Renamed Workspace'
      })
    }
  );

  const { workspace } = await response.json();
  ```

  ```python Python theme={null}
  import requests

  workspace_id = 1873

  response = requests.post(
      f'https://app.drime.cloud/api/v1/workspace/{workspace_id}',
      headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
      json={'name': 'Renamed Workspace'}
  )

  workspace = response.json()['workspace']
  ```
</RequestExample>

<ResponseExample>
  ```json 200 - Success theme={null}
  {
    "workspace": {
      "id": 1873,
      "name": "Renamed Workspace",
      "owner_id": 15843,
      "updated_at": "2025-12-20T10:00:00.000000Z"
    },
    "status": "success"
  }
  ```
</ResponseExample>
