Skip to content
LogoLogo

Restore a historical snapshot as a new active revision

Restore a historical snapshot as a new active revision

POST/api/v1/documents/{document_id}/revisions/{revision}/restore

The source snapshot remains immutable. The current Document revision must be supplied in If-Match. Canonical content with an unsupported schema or an attempted schema 2-to-1 downgrade returns 409 document_schema_version_unsupported. Restoring an older Document revision retains an existing schema 2 floor.

Path Parameters

document_idRequired
string <uuid>
Example0198ac5e-f9b7-7000-8000-000000000001
revisionRequired
integer·min 1

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.

If-MatchRequired
string

Entity tag containing the resource version last observed by the client.

Responses