Lathe Apps API
The apps API from Lathe — 21 operation(s) for apps.
Operations 27
GET
/instances/{instance_id}/apps
The apps on the box: image, port, domains, memory and the names of their…
#
PATCH
/instances/{instance_id}/apps
Split the apps engine's budget again between the apps, in one job: {memory…
#
PUT
/instances/{instance_id}/apps/{name}
Add an app or change one: the box pulls the image, starts it beside the running…
#
PATCH
/instances/{instance_id}/apps/{name}
Change some of an app's settings and leave the rest: send only the fields you…
#
DELETE
/instances/{instance_id}/apps/{name}
Stop an app and remove it; its data directory on the box stays, its environment…
#
POST
/instances/{instance_id}/apps/import
An app from a GitHub repository, in one step: read the repository, add what it…
#
PUT
/instances/{instance_id}/apps/{name}/env
Replace an app's environment; the app restarts with it
#
PATCH
/instances/{instance_id}/apps/{name}/env
Add, overwrite or remove some of an app's variables, leaving the rest; the app…
#
GET
/instances/{instance_id}/apps/{name}/logs
The last lines of an app's log, read from the machine now
#
POST
/instances/{instance_id}/apps/{name}/actions/deploy
Pull the app's image again, tag unchanged or not, and restart it
#
POST
/instances/{instance_id}/apps/{name}/actions/restart
Restart one app's container on the image it is already running; nothing is…
#
GET
/github/installations
The GitHub accounts connected to this Lathe account, and for each one any…
#
PUT
/github/installations/{installation_id}/repos
Narrow the repositories this account may use on a GitHub installation it shares…
#
GET
/github/repos
The repositories the Lathe app can see for this account: what an import can take
#
GET
/github/repos/{owner}/{name}
What importing a repository would do: the workflow that builds its image, the…
#
GET
/instances/{instance_id}/apps/{name}/github
What this app is connected to on GitHub: the repository, who builds it and that…
#
PUT
/instances/{instance_id}/apps/{name}/github
Connect this app to a workflow of yours or to a build of ours, and move it…
#
DELETE
/instances/{instance_id}/apps/{name}/github
Disconnect this app from GitHub; it keeps running exactly what it runs
#
GET
/instances/{instance_id}/apps/{name}/builds
Every build of this app, newest first, each with how it was built: the failed…
#
GET
/instances/{instance_id}/apps/{name}/builds/{run_id}
One build, with everything it printed: what failed, what was installed, and…
#
POST
/instances/{instance_id}/apps/{name}/github/actions/deploy
Deploy the newest green build of the connected workflow now
#
POST
/instances/{instance_id}/apps/{name}/github/actions/retry
Deploy a green build again after its deploy failed: the build stands, so no new…
#
POST
/instances/{instance_id}/apps/{name}/github/actions/rebuild
Build a commit again on Lathe's builder, named by the run of the build that…
#
POST
/instances/{instance_id}/apps/{name}/github/actions/rollback
Go back to a build this app deployed before, by the digest it ran then
#
Specifications
Schemas & Data
JSONSchema
https://artifacts.apis.io/lathe-live/json-schema/lathe-live-app-patch-schema.json
JSONSchema
https://artifacts.apis.io/lathe-live/json-schema/lathe-live-app-in-schema.json
JSONSchema
https://artifacts.apis.io/lathe-live/json-schema/lathe-live-import-in-schema.json
JSONSchema
https://artifacts.apis.io/lathe-live/json-schema/lathe-live-git-hub-binding-in-schema.json
JSONSchema
https://artifacts.apis.io/lathe-live/json-schema/lathe-live-accepted-schema.json