Skip to content

Replace the live compose with a stored version and redeploy

POST
/apps/{slug}/versions/{id}/restore
curl --request POST \
--url https://your-server.example/api/apps/example/versions/1/restore \
--cookie session=<session>
slug
required
string

App slug (lowercase, dash-separated).

id
required
integer format: int64

Restore accepted.

Media typeapplication/json
object
status
string

Example

{
"status": "restoring"
}

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