Skip to content

Save a named version (snapshot)

POST
/api/documents/:id/versions

POST /api/documents/:id/versions

Creates a named checkpoint of the current document state

Request Bodyrequired

Request to save a new version

object
ai_model
string | null
ai_session_id
string | null format: uuid
author_type
string | null
commit_message
string | null

Responses

201

Save a named version (snapshot)

401

Unauthorized

404

Not found