Restore a shared app's deploy
Deploys a kept version of the app again: a new box from that version's copy, then the link switches to it and the app's data folder (TRICKEST_DATA_DIR) moves with it. Runs in the background: 202 with the app in status publishing; the list reports the outcome, and the old copy keeps serving when the restored one does not start. The start command gets a fresh read-only TRICKEST_TOKEN for the tables the computer declares now (none while the computer is not running), and the one it had stops working. Requires write access to the source computer (or a vault owner or space admin) and available spend.
/api/apps/{id}/deploys/{deployId}/restoreidstringrequireddeployIdstringrequiredRequest
curl -X POST https://trickest.io/api/apps/{id}/deploys/{deployId}/restore \
-H "Authorization: Token $TRICKEST_TOKEN"Responses
idstringrequiredslugstringrequiredurlstringrequiredvisibilityenumrequiredOne of: vault, trickest, public
vaultIdstringrequiredsourceSandboxIdstringrequiredsandboxIdstringrequiredportnumberrequiredstartCommandstringrequiredcwdstringrequiredstatusenumrequiredOne of: running, stopped, publishing, failed
createdBystringrequiredcreatedAtstringrequiredupdatedAtstringrequiredpublishedAtstringrequiredlastErrorobjectcodestringrequiredmessagestringrequireddetailstringphaseenumOne of: install, build, start, probe
reasonstringexitCodeintegerdeployIdstringlogUrlstringcodestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.