Update an app (image changes require `app-deploy`). Every change is a new deployment run; a new tag is resolved to a digest at its registry.
const url = 'https://example.com/api/v1/projects/example/environments/example/apps/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"image":"example","port":1,"command":["example"],"replicas":1,"max_replicas":1,"size":"example","env":[{"name":"LOG_LEVEL","value":"example","secret":{"name":"example","key":"example"}}],"domains":["example"],"health_check_path":"example","schedule":"example","time_zone":"example","protocol":"http","volumes":[{"name":"data","mount_path":"/data","size":"5Gi"}],"fs_group":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/projects/example/environments/example/apps/example \ --header 'Content-Type: application/json' \ --data '{ "image": "example", "port": 1, "command": [ "example" ], "replicas": 1, "max_replicas": 1, "size": "example", "env": [ { "name": "LOG_LEVEL", "value": "example", "secret": { "name": "example", "key": "example" } } ], "domains": [ "example" ], "health_check_path": "example", "schedule": "example", "time_zone": "example", "protocol": "http", "volumes": [ { "name": "data", "mount_path": "/data", "size": "5Gi" } ], "fs_group": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project name
Environment short name
App name
Request Bodyrequired
Section titled “Request Bodyrequired”Partial update; omitted fields are left unchanged, lists are replaced.
object
Empty string removes the health check.
Empty string removes the schedule.
Replaces the list. Removed volumes are unmounted, never deleted.
Persistent volume (kept when the app is deleted, unless requested).
object
Example
dataExample
/dataCapacity such as 5Gi. Can grow, never shrink.
Example
5Gi0 removes the fsGroup.
Responses
Section titled “Responses”object
Environment short name.
Available, Progressing, RolloutFailed, Scheduled, AwaitingBuild, …
object
Cron expression of scheduled processes.
http or tcp.
Persistent volume (kept when the app is deleted, unless requested).
object
Capacity such as 5Gi. Can grow, never shrink.
Whether the app can be reached through the gateway, apart from whether it runs (null while it has no route).
object
The gateway accepted the route and resolved its references; null until a gateway controller answered.
One hostname of an app.
object
auto (certificate from the cluster issuer), secret (the app’s own
certificate) or none (plain HTTP).
For auto hosts with a certificate of their own: whether it is issued.
Why delivery is paused, while it is: new runs wait.
Example
{ "env": [ { "name": "LOG_LEVEL" } ], "volumes": [ { "name": "data", "mount_path": "/data", "size": "5Gi" } ]}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}The image’s registry cannot be reached
Problem Details body.
object
Stable machine-readable code, e.g. forbidden.
Short human readable title.
HTTP status.
Details, if safe to expose.
Example
{ "code": "forbidden"}