Restore a shared app's deploy

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.

POST/api/apps/{id}/deploys/{deployId}/restore
Path parameters
idstringrequired
deployIdstringrequired

Request

curl
curl -X POST https://trickest.io/api/apps/{id}/deploys/{deployId}/restore \
  -H "Authorization: Token $TRICKEST_TOKEN"

Responses

202The shared app, deploying the restored version
idstringrequired
slugstringrequired
urlstringrequired
visibilityenumrequired

One of: vault, trickest, public

vaultIdstringrequired
sourceSandboxIdstringrequired
sandboxIdstringrequired
portnumberrequired
startCommandstringrequired
cwdstringrequired
statusenumrequired

One of: running, stopped, publishing, failed

createdBystringrequired
createdAtstringrequired
updatedAtstringrequired
publishedAtstringrequired
lastErrorobject

codestringrequired
messagestringrequired
detailstring
phaseenum

One of: install, build, start, probe

reasonstring
exitCodeinteger
deployIdstring
logUrlstring
400Bad Request – validation error or malformed input
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

401Unauthorized – missing or expired token
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

403Forbidden – insufficient permissions
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

429Too Many Requests – rate limited
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.

500Internal Server Error
codestringrequired
messagestringrequired
detailsobject

Field-level detail when the error is a validation failure.