Roll back to a previous compose version
POST
/apps/{slug}/rollback
const url = 'https://your-server.example/api/apps/example/rollback';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"version_id":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://your-server.example/api/apps/example/rollback \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "version_id": 1 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
App slug (lowercase, dash-separated).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
version_id
required
integer format: int64
Example generated
{ "version_id": 1}Responses
Section titled “Responses”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" ]}string
A domain of this version now belongs to another app or the dashboard.
Media typetext/plain
string