v1

latestOpenAPI 3.1.02026-07-2618690613.4 KB
Documents v2

Publish draft

Publish the document's current main (non-branch) draft, promoting it to the published version. No request body — the draft is consumed, so the response echoes the now-published document's metadata.

Only the main draft is publishable with this endpoint. A branch-attached draft is published by merging its branch.

post/v2/documents/{documentId}/draft/publish

Path parameters

documentIdstring required

The published document's URL slug (e.g. abc123) or its canonical workbook UUID.

Response

Draft published successfully.

identifierstring required

Published document identifier.

namestring required

Document name.

descriptionstring nullable required

Document description.