---
title: "Update Document Metadata"
method: PATCH
path: "/api/v1/document/{id}/metadata"
tags: ["Documents"]
---

# Update Document Metadata

`PATCH /api/v1/document/{id}/metadata`

## Path parameters

- `id` string, required

## Headers

- `CodeGPT-Org-Id` string

## Request body

- Metadata
  - `title` string — Title of the document
  - `description` string — Description of the document
  - `summary` string — Summary of the document
  - `keywords` string — Keywords of the document
  - `language` string — Language of the document

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request
- `422` — Validation Error

---

[API](https://skmtc.net/codegpt/apis/codegpt-api-beta.md) · [All operations](https://skmtc.net/codegpt/apis/codegpt-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codegpt/codegpt-api-beta/versions/0a70b3b0cec3/schema)
