Skip to main content
POST
Throw away selected changes from the version log

Body

application/json
session
string
required

Editor session key. Scoped with siteId into the key the state store uses.

versions
number[]
required

Version numbers from GET /history/log.

Minimum array length: 1
siteId
string

Site this session belongs to, when the orchestrator hosts more than one.

Response

{ status: "applied", previewVersion, discarded: [{ slug, fromVersion, toVersion, alsoDiscarded }], skipped: [{ version, reason }], navigateToSlug?, canUndo, canRedo }.