Galon Cloud
Galon API v1

/deploy/production/rollback

Base URL https://api.galon.ai/v1 · export GALON_API_BASE="https://api.galon.ai/v1"

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

StatusDescriptionBody
200Previous release servedobject
400body_not_allowedError
401Key missing or invalidError

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()