Share a computer's app
Shares the computer's app at {scheme}://{slug}.{publicDomain}, or updates the app it already shares: the app restarts from a fresh copy of the computer at the same address, and changed fields apply when the new copy runs. A first deploy needs slug and visibility; startCommand defaults to the control plane's own choice (a Next app that builds serves its build, any other runs npm run dev). An update keeps the app's value for each omitted field, and pending lists the requested changes that apply when the new copy goes live. Snapshots the computer into a persistent app box, runs startCommand there and serves port. The deploy runs in the background: 202 with the app in status publishing; poll the list for the outcome (lastError when it failed). The app's start command gets a read-only TRICKEST_TOKEN for the tables the computer declares in .trickest/datasets.json, and TRICKEST_BASE_URL. Requires write access to the computer's space, Enterprise and available spend. 409 SLUG_TAKEN when the address is in use; 400 INVALID_SLUG when the control plane refuses it.
/api/appscomputerIdstringrequiredslugobjectvisibilityobjectportobjectstartCommandobjectcwdobjectRequest
curl -X POST https://trickest.io/api/apps \
-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
reasonstringexitCodeintegerdeployIdstringlogUrlstringpendingobjectslugstringvisibilityobjectportnumberstartCommandstringcwdstringcodestringrequiredmessagestringrequireddetailsobjectField-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.