---
title: "Patch Document Metadata V3"
method: PATCH
path: "/v3/collections/{collection_name}/documents/{document_id}/metadata"
tags: ["file-search"]
---

# Patch Document Metadata V3

`PATCH /v3/collections/{collection_name}/documents/{document_id}/metadata`

Merge keys into a document's `custom_metadata` without restating the whole object; a `null` value deletes its key. Use PUT instead to replace the stored object wholesale.

## Path parameters

- `collection_name` string, required
- `document_id` string, required

## Request body

- UpdateChunkMetadataRequestV3
  - `metadata` UpdateChunkMetadataRequestV3Metadata

## Response `200`

Update Document Metadata response.

- DocumentMetadataResponseV3 — Response for the document-metadata write endpoints (CAP-659).
  - `custom_metadata` object
  - `document_id` string, required
  - `filterable` boolean
  - `updated_at` string, nullable

---

[API](https://skmtc.dev/runcaptain/apis/api-reference.md) · [All operations](https://skmtc.dev/runcaptain/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runcaptain/api-reference/revisions/fe4649e3f4aa/schema)
