Roll back to an earlier revision: a new run of its release and configuration. The app stays on it until automatic deploys resume.
const url = 'https://example.com/api/v1/projects/example/environments/example/apps/example/rollback';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"revision":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/projects/example/environments/example/apps/example/rollback \ --header 'Content-Type: application/json' \ --data '{ "revision": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project name
Environment short name
App name
Request Bodyrequired
Section titled “Request Bodyrequired”object
Revision to restore.
Examplegenerated
{ "revision": 1}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"}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"}