Skip to content

Roll back to a previous compose version

POST
/apps/{slug}/rollback
curl --request POST \
--url https://your-server.example/api/apps/example/rollback \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "version_id": 1 }'
slug
required
string

App slug (lowercase, dash-separated).

Media typeapplication/json
object
version_id
required
integer format: int64

Example generated

{
"version_id": 1
}

Rolled back.

Media typeapplication/json
object
status
string

Example

{
"status": "ok"
}

Invalid request, or the compose file fails security checks (JSON body with every reason).

object
error
string
violations
Array<string>

Example

{
"error": "compose file contains disallowed directives",
"violations": [
"service \"web\": privileged mode not allowed"
]
}

A domain of this version now belongs to another app or the dashboard.

Media typetext/plain
string