---
title: "Commit an author's edit to a content draft"
method: POST
path: "/api/v1/content-draft/{draftId}/commit"
tags: ["content-draft"]
---

# Commit an author's edit to a content draft

`POST /api/v1/content-draft/{draftId}/commit`

## Path parameters

- `draftId` string, uuid, required

## Request body

- ContentDraftCommitDraftRequestDTO
  - `baseVersion` integer, required — The record version the posted draft was derived from; 409 when the draft has moved on.
  - `draft` unknown, required

## Response `201`

- ContentDraftCommitDraftResponseDTO
  - `canRedo` boolean, required — Whether an undone version is still ahead of the cursor
  - `canUndo` boolean, required — Whether an earlier version is still retained to step back to
  - `changedSections` string[], required — Names of the top-level draft sections this commit moved. Empty when the draft already said what was posted, in which case nothing was written.
  - `cursorVersion` number, required — The version whose content the draft is showing. Equal to `version` unless something has been undone.
  - `draftId` string, required — The draft this commit was applied to
  - `version` number, required — The write counter after the commit. Send this as `baseVersion` on the next commit.

## Changes

- **2026-09-04** `37a0dba85517` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/wejam/apis/jam/changes/api/v1/content-draft/:draftId/commit/post.md)

---

[API](https://skmtc.dev/wejam/apis/jam.md) · [All operations](https://skmtc.dev/wejam/apis/jam/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wejam/jam/revisions/37a0dba85517/schema)
