workspace

restore a version

Changed on

Puts the workspace back the way the given version left it. Leaving the scope out restores the whole workspace by stepping through the history, which writes nothing and leaves the changes stepped over to be redone. A scope holding the restore to certain graphs is recorded as a new change instead, which discards whatever could still be redone. With expectedCurrentChangeId, only if the workspace still stands on that change, and with expectedNewestChangeId, only if that is still the newest recorded change, undone or not; otherwise nothing is restored and 409 is returned. A restore that cannot be carried out, such as one held to a schema that did not exist yet at that version, is refused with 422.

post/api/workspaces/{workspaceName}/restore

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

workspaceName, string required

The literal name of the dataset.

Headers

Origin, string

The name/url of the inquirer.

Request body

RestoreVersionDTO required
expectedCurrentChangeId, string
expectedNewestChangeId, string
schemaNames, string[]
versionId, string

Response

OK

HistoryStepDTO required
canRedo, boolean
canUndo, boolean
change, ChangeLogEntryDTO

Changes