---
title: "Patch Document Frontmatter"
method: PATCH
path: "/documents/{doc_id}/frontmatter"
---

# Patch Document Frontmatter

`PATCH /documents/{doc_id}/frontmatter`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/documents/{doc_id}/frontmatter`
- Auth: none declared

Change only some frontmatter keys: `set` writes keys, `unset` removes them,
every other key stays as the server has it (merged server-side, row locked).
What the web app's writers use, so an icon or purpose edit never reverts a
status an agent or a Properties edit set meanwhile. Same checks as the PUT.

## Path parameters

- `doc_id` string, required

## Request body

- PatchFrontmatterRequest
  - `set` object
  - `unset` string[]

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/wunel/apis/wunel-api.md) · [All operations](https://skmtc.dev/wunel/apis/wunel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wunel/apis/wunel-api/revisions/872fe0687a60?raw)
