> ## 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.

# Update Prompt

> Update the Prompt of 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="prompt" type="string" required>
  The Prompt for the assistant
</ParamField>

### Response

<ResponseField name="prompt" type="string">
  The updated prompt of the assistant
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
      "prompt": "The updated prompt of the assistant"
  }
  ```

  ```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":"Failed to retrieve model settings"
  }
  ```
</ResponseExample>
