AppDeploy
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/hosting/apps/{app_id}/deploys |
create |
Success |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
created, err := client.AppDeploy(nil).Create(map[string]any{"app_id": "example", "image": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local created, err = client:AppDeploy():create({ app_id = "example", image = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$created = $client->AppDeploy()->create(["app_id" => "example", "image" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
created = client.AppDeploy().create({ "app_id": "example", "image": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
created = client.AppDeploy.create({ "app_id" => "example", "image" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const created = await client.AppDeploy().create({ app_id: "example", image: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
app_environment_id |
string |
No | App Environment Id |
app_service_id |
string |
No | App Service Id |
channel |
string |
No | Channel |
command |
string |
No | Command |
commit_sha |
string |
No | Commit Sha |
desired_instances |
integer |
No | Desired Instances |
environment |
string |
No | Environment slug or public ID, all, or existing. |
image |
string |
Yes | Image |
region |
string |
No | Region |
rollout_predecessor |
string |
No | Public deployment operation ID from the same app that must succeed before this rollout starts. |
service |
string |
No | Service slug or public ID; required unless app_service_id is supplied. |
source_ref |
string |
No | Source Ref |
create
POST /api/v1/hosting/apps/{app_id}/deploys
Operation ID: api_v1_app_deploys.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
app_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
app_environment_id |
string |
No | |
app_service_id |
string |
No | |
channel |
string |
No | |
command |
string |
No | |
commit_sha |
string |
No | |
desired_instances |
integer |
No | |
environment |
string |
No | Environment slug or public ID, all, or existing. |
image |
string |
Yes | |
region |
string |
No | |
rollout_predecessor |
string |
No | Public deployment operation ID from the same app that must succeed before this rollout starts. |
service |
string |
No | Service slug or public ID; required unless app_service_id is supplied. |
source_ref |
string |
No |
Responses
200: Success
application/json
The response is object.