Update an app (image changes require `app-deploy`). Every change is a new release revision.
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.
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"}