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

# Lock Assistant

> Endpoint to lock the assistant

### Authorizations

<ParamField header="x-api-key" type="string" required>
  API key associated with your workspace
</ParamField>

### Path Parameters

<ParamField path="workspaceId" type="string" required>
  UUID of the workspace
</ParamField>

<ParamField path="assistantId" type="string" required>
  UUID of the Assistant
</ParamField>

### Body Parameters

<ParamField body="locked" type="boolean" required>
  The locked status of the assistant
</ParamField>

### Response

<ResponseExample>
  ```json 200 theme={null}
  {
      "success": true,
      "assistant": {
          "id": "<Assistant ID>",
          "locked": "<locked status>"
      }
  }
  ```

  ```json 400 theme={null}
  {
      "error": "Invalid workspace or assistant ID"
  }
  ```

  ```json 401  theme={null}
  {
      "message": "No api key, authorization denied"
  }
  ```

  ```json 404 theme={null}
  {
      "error": "Assistant not found"
  }
  ```

  ```json 500 theme={null}
  {
      "error":"Internal Server error"
  }
  ```
</ResponseExample>
