Galon Cloud
Galon API v1

/deploy/production/promote

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

POST /deploy/production/promote

Promote a preview to production

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"}}.

API key (Bearer), on the public API endpoint.

Request body

application/json

FieldTypeDescription
journey_idstring · required

Responses

StatusDescriptionBody
200Release promotedobject
404deploy_production_journey_not_foundError
401Key missing or invalidError

Examples

curl

curl -X POST "$GALON_API_BASE/deploy/production/promote" \
  -H "Authorization: Bearer $GALON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"journey_id": "djy_..."}'

Node.js (SDK)

import { Galon } from "galon";

const galon = new Galon(process.env.GALON_API_KEY);
const result = await galon.production.promote({"journey_id": "djy_..."});

Python (SDK)

from galon import Galon

galon = Galon()  # reads GALON_API_KEY
result = galon.production.promote({"journey_id": "djy_..."})