Artifacts

Restore an older version (non-destructive)

Changed on

Creates a new version (latest_version + 1, source: restore) with the files of version versionNo and makes it live, or stages it when blocking tests are on. Every earlier version stays in the history. Replaces the deprecated POST /v1/artifacts/{id}/rollback. Editor or owner.

post/v1/artifacts/{id}/versions/{versionNo}/restore

Request

  • Base URL
    https://shareout.site
  • URL
    https://shareout.site/v1/artifacts/{id}/versions/{versionNo}/restore
  • Auth
    HTTP bearer

Request body

messagestring

Change note for the new version.

Response

Restored as a new version

successboolean
version_idstring
version_nointeger
restored_from_version_nointeger
stagedboolean

Changes