---
title: "Update chunk metadata by chunk ID"
method: PATCH
path: "/v1alpha1/public/knowledge-base/document/{documentID}/chunk/{chunkID}"
tags: ["KBPublicApiDocument", "Public-Docs"]
---

# Update chunk metadata by chunk ID

`PATCH /v1alpha1/public/knowledge-base/document/{documentID}/chunk/{chunkID}`

Update the metadata associated with the specified document chunk.

## Path parameters

- `documentID` string, required — ID of the document to target.
- `chunkID` string, required — ID of the document chunk to target.

## Response `200`

The target document chunk was updated successfully.

- DocumentChunkUpdateMetadataResponse
  - `data` object, required
    - `documentID` string, required
    - `data` union, required
      - KBDocumentUrlData
        - `type` 'url', required
        - `name` string, required
        - `url` string, required
        - `refreshRate` 'daily' | 'weekly' | 'monthly' | 'never'
        - `lastSuccessUpdate` string
        - `accessTokenID` number
        - `integrationExternalID` string
        - `source` 'zendesk' | 'shopify'
      - KBDocumentDocxData
        - `type` 'docx', required
        - `name` string, required
        - `url` string, nullable
      - KBDocumentPDFData
        - `type` 'pdf', required
        - `name` string, required
        - `url` string, nullable
      - KBDocumentTextData
        - `type` 'text', required
        - `name` string, required
        - `canEdit` boolean
        - `url` string, nullable
      - KBDocumentMarkdownData
        - `type` 'md', required
        - `name` string, required
        - `url` string, nullable
      - KBDocumentCSVData
        - `type` 'csv', required
        - `name` string, required
        - `rowsCount` number
        - `url` string, nullable
      - KBDocumentXLSXData
        - `type` 'xlsx', required
        - `name` string, required
        - `rowsCount` number
        - `url` string, nullable
      - KBDocumentTableData
        - `type` 'table', required
        - `name` string, required
        - `rowsCount` number, required
        - `url` string, nullable
    - `updatedAt` string, date-time, required
    - `status` KBDocumentStatus, required
      - `type` 'ERROR' | 'PENDING' | 'SUCCESS' | 'INITIALIZED', required
      - `data` unknown

---

[API](https://skmtc.dev/voiceflow/apis/general-runtime.md) · [All operations](https://skmtc.dev/voiceflow/apis/general-runtime/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/voiceflow/general-runtime/revisions/6b1c4f778c56/schema)
