Update a shared app
Takes a fresh snapshot of the source computer, moves the app to a new box and deletes the old one. The address stays the same and the app's data folder (TRICKEST_DATA_DIR) moves with it; port moves the app to another port the computer serves and startCommand replaces the command that starts it, both applied when the new box runs. The deploy runs in the background: 202 with the app in status publishing, and the list reports the outcome: lastError when the new copy does not start (detail: the command's last output lines), while the old copy keeps serving. The start command gets a fresh read-only TRICKEST_TOKEN, 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}/publishidstringrequiredportobjectstartCommandobjectRequest
curl -X POST https://trickest.io/api/apps/{id}/publish \
-H "Authorization: Token $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'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.