POST /deploy/production/rollback
Roll back to the previous release
Scope deploy:create. Write: live key required (403 deploy_production_live_key_required with a test key). Served only when Galon Deploy is open to the account (404 otherwise). Errors {"detail": {"code"}}. No body: one step back. Choosing an earlier release ({"release_id"}) is available on request.
API key (Bearer), on the public API endpoint.
Responses
| Status | Description | Body |
|---|---|---|
200 | Previous release served | object |
400 | body_not_allowed | Error |
401 | Key missing or invalid | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/deploy/production/rollback" \
-H "Authorization: Bearer $GALON_API_KEY"Node.js (SDK)
import { Galon } from "galon";
const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.production.rollback();Python (SDK)
from galon import Galon
galon = Galon() # reads GALON_API_KEY
result = galon.production.rollback()