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

> Update the existing paragraph in the knowledge base

### Authorizations

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

### Path Parameters

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

<ParamField path="kbId" type="string" required>
  UUID of the knowledge base
</ParamField>

### Body Parameters

<ParamField body="data" type="string" required>
  The Content of the paragraph
</ParamField>

<ParamField body="key" type="string" required>
  The `Key` of the paragraph
</ParamField>

### Response

<ResponseExample>
  ```json 200 theme={null}
  {
      msg: "Paragraph updated successfully"
  }
  ```

  ```json 400 theme={null}
  {
      msg: "Paragraph does not exist in Knowledge base"
  }
  ```

  ```json 401 theme={null}
  {
      message: "Api key is not valid"
  }
  ```

  ```json 404 theme={null}
  {
      msg: "Invalid knowledge base id recieved"
  }
  ```

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