---
title: "Update Content Chunk"
method: PATCH
path: "/api/content_chunks/{chunk_uuid}"
tags: ["content_chunks"]
---

# Update Content Chunk

`PATCH /api/content_chunks/{chunk_uuid}`

## Request

- Base URL: `https://api.regdoor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.regdoor.com/api/content_chunks/{chunk_uuid}`
- Auth: HTTP bearer

Update an existing content chunk.

Updates the text, embedding, or tags of an existing chunk. Only provided
fields will be updated. The actor is taken from X-Regdoor-Actor-* headers
set by content-proxy, not from the JSON body. This API trusts any caller
that already holds the main-api/admin machine scope. It does not check
that the header matches a person.

## Path parameters

- `chunk_uuid` string, uuid, required

## Headers

- `X-Regdoor-Actor-Email` string, nullable
- `X-Regdoor-Actor-Id` string, nullable

## Request body

- ContentChunkUpdate
  - `text` string, nullable
  - `embedding` number[], nullable
  - `tags` ChunkTagAssociation[], nullable
    - `tag_uuid` string, uuid4, required
    - `name` string, nullable
    - `weight` number, nullable
    - `weight_rationale` string, nullable
  - `info` object, nullable
  - `future_updates` string[], nullable

## Response `200`

Successful Response

- ContentChunk
  - `uuid` string, uuid4, required
  - `text` string, required
  - `info` object, nullable
  - `future_updates` string[]
  - `last_edit` ChunkEditStamp
    - `edited_at` string, date-time, required
    - `source` string, required
    - `actor_email` string, nullable
    - `actor_id` string, nullable
    - `fields` string[]
    - `text_changed` boolean
    - `as_of` string, date, nullable
  - `content` AppViewsSchemasContentChunkSchemaContentRef
    - `uuid` string, uuid4, required
    - `name` string, required
  - `tags` ChunkTagAssociation[]
    - `tag_uuid` string, uuid4, required
    - `name` string, nullable
    - `weight` number, nullable
    - `weight_rationale` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/regdoor/apis/regdoor-api.md) - [All operations](https://skmtc.dev/regdoor/apis/regdoor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/regdoor/apis/regdoor-api/revisions/7642336631af?raw)
