---
title: "Append a markdown section to the doc"
method: POST
path: "/api/workspaces/{slug}/doc/sections"
tags: ["Doc body"]
---

# Append a markdown section to the doc

`POST /api/workspaces/{slug}/doc/sections`

## Request

- Base URL: `https://trydock.ai`
- URL: `https://trydock.ai/api/workspaces/{slug}/doc/sections`
- Auth: HTTP bearer

Append-only counterpart to PUT /doc. Saves the round-trip cost of fetch+merge+PUT for agents producing content in chunks (changelog updates, daily standups, ingest pipelines).

## Path parameters

- `slug` string, required

## Request body

- object
  - `markdown` string, required

## Response `200`

Appended.

- object
  - `content` unknown
  - `markdown` string: CommonMark + GFM. Returned when `?format=markdown` (or `Accept: text/markdown` with no `?format`).
  - `text` string: Plain text, formatting marks stripped. Returned when `?format=text` (or `Accept: text/plain` with no `?format`).
  - `updatedAt` string, date-time, required
  - `updatedBy` string, required

---

[API](https://skmtc.dev/trydock/apis/dock-rest-api.md) - [All operations](https://skmtc.dev/trydock/apis/dock-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/trydock/apis/dock-rest-api/revisions/dd96ae96a412?raw)
