For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10 (unreleased)

Restore a version

POST 

/versions/:versionKey/restoration

Restores the file content to the state captured in this version. A new version is created representing the restored state, unless both the file's live content and its most recent version already match that exact content, in which case that version is returned and nothing is created. For element template files, the request body must include the target version number and a new version is always created.

Request​

Responses​

The version was restored successfully. Returns the newly created version, or the file's most recent version when both that version and the file's live content already matched this content.