apps

Api Restore App Version

Make an earlier version the live one — the counterpart of Publish.

The one write in version history. In the browser it is the "Restore this version" button on a version being looked at (/versions/{sha}/build + /runtime/stream show it first, touching nothing); from the CLI it is dot apps restore. Editors only. Any edit draft stays exactly as it was.

Recorded like any other publish: the bundle is written, built and committed as a new version, so the version this replaces stays in the history and the restore itself can be restored. The build reuses the charts of the view the person just looked at, so what goes live is what they saw.

post/api/apps/{app_id}/versions/{sha}/restore

Request

  • Base URL: https://app.getdot.ai (the document declares no server; this is the origin it was published from)
  • URL: https://app.getdot.ai/api/apps/{app_id}/versions/{sha}/restore
  • Auth: one of:
    • API key in header X-API-KEY
    • API key in cookie Authorization
    • OAuth 2 (password, token URL /api/auth/token)

Path parameters

app_idstring required
shastring required

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.