Skip to main content

Push Version

Push a new version of an existing document. The document URL stays the same — viewers always see the latest version.

Request

Headers

HeaderRequiredDescription
X-API-KeyYesYour API key
Content-TypeYesapplication/json

Path Parameters

ParameterTypeRequiredDescription
document_idstringYesThe document ID

Body

FieldTypeRequiredDescription
titlestringYesDocument title
blocksarrayYesArray of content blocks
blocks[].typestringYesBlock type
blocks[].contentstringYesBlock content
blocks[].metadataobjectNoBlock metadata
content_typestringNoDefault: "markdown"
metadataobjectNoDocument-level metadata

Example

Response

Status: 201 Created