Skip to content
LogoLogo

Create or edit a versioned Document draft

Create or edit a versioned Document draft

POST/api/v1/workspaces/{workspace_id}/document-patches

Membership-private native work capability. Current Workspace and resource permissions are checked on every request. Responses use Cache-Control: no-store. Requires a browser session and CSRF. Reuse Idempotency-Key only for the same request. Before retrying an uncertain write, resolve its operation receipt.

Path Parameters

workspace_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001

Header Parameters

X-CSRF-TokenRequired
string·min 43·max 43

Session-bound CSRF token. It must exactly match the __Host-assign_csrf cookie sent with the request.

Idempotency-KeyRequired
string·min 16·max 200

Opaque client-generated key for safely retrying this operation.

Request Body

application/json
document_idRequired
string <uuid>
base_revisionRequired
integer <int64>
contentRequired
object
id
string <uuid>
expected_version
integer <int64>

Responses