Deployments

Upload source code

Uploads your source code as a single .tar.gz or .zip archive, to deploy with POST /v2/projects/{project_id}/releases. The request must include a Content-Length header. The maximum size depends on your bundle plan. Team permission: deploy, operate or manage.

post/v2/projects/{project_id}/sources

Request

  • Base URL
    https://api.liara.ir
  • URL
    https://api.liara.ir/v2/projects/{project_id}/sources
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The app's name.

Query parameters

teamIDstring

24-character hexadecimal ID.

Run the request in the context of a team you belong to, instead of your personal account.

Request body multipart/form-data

filestring binary required

The archive (application/gzip or application/zip).

Response

The source was uploaded.

sourceIDstring

Pass it as sourceID when creating a release.

Changes

No recorded changes to this operation across all 25 revisions of this API.