Skip to main content
POST
/
v2
/
projects
/
{name}
/
sources
Deploy sources code
curl --request POST \
  --url https://api.iran.liara.ir/v2/projects/{name}/sources \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "sourceID": "<string>"
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

name
string
required

The name of your app for deploy

Body

multipart/form-data
file
file
required

The .gz file to deploy

Response

Successful operation

sourceID
string