---
title: "Create Content Chunk"
method: POST
path: "/api/content_chunks/"
tags: ["content_chunks"]
---

# Create Content Chunk

`POST /api/content_chunks/`

## 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/`
- Auth: HTTP bearer

Create a new content chunk.

Creates a new chunk for a specific content. The chunk can optionally include
an embedding and be associated with tags.

## Request body

- ContentChunkCreate
  - `content_uuid` string, uuid4, required
  - `text` string, required
  - `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 `201`

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)
