Deploy a release
Starts a new release of the app, from an uploaded sourceID or, for docker apps, from an image. Send exactly one of them. Releases that are still building or deploying are cancelled. Source releases are built first; image releases are deployed directly.
Limit: the number of deployments per day depends on your bundle plan. Team permission: deploy, operate or manage.
Authorizations
Send your API token as Authorization: Bearer <api-token>.
Path Parameters
The app's name.
Query Parameters
Run the request in the context of a team you belong to, instead of your personal account. 24-character hexadecimal ID.
^[0-9a-fA-F]{24}$Body
The app's platform.
node, next, react, vue, angular, static, laravel, php, django, flask, python, netcore, dotnet, go, docker The port your app listens on. For static, react, vue, angular, laravel, php, django and flask it's always 80, and for next always 3000, whatever you send.
x >= 1From POST /v2/projects/{project_id}/sources.
Only for docker apps. A container image to deploy instead of source code.
If not empty, replaces all of the app's environment variables.
Arguments to start the app with.
Scheduled jobs, each a cron schedule followed by a command. Only for next, laravel, php, python, django, flask and go.
8Command that checks whether the app is healthy. Times are in milliseconds.
A note about the release. Longer text is cut off.
50Information about the commit being deployed, shown with the release.
Platform-specific build settings. The allowed fields depend on type:
mirror (and npmMirror / composerMirror) download packages
through Liara's package mirrors.
Response
The release was created.
