Update a shared app

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.

POST/api/apps/{id}/publish
Path parameters
idstringrequired
Body
portobject
startCommandobject

Request

curl
curl -X POST https://trickest.io/api/apps/{id}/publish \
  -H "Authorization: Token $TRICKEST_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ }'

Responses

202The shared app, deploying
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.