Galon Cloud
Galon API v1

/deploy/journeys/{journey_id}/preview

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

DELETE /deploy/journeys/{journey_id}/preview

Delete a preview

Remove the preview of a deploy: its address stops answering (410). Use when the user wants a preview taken offline. Before: a deploy whose preview is ready (status ready). Returns the deploy with status deleted; 202 when the removal is still running (call again); 409 deploy_preview_in_production when this preview is the production release (never removed). Destructive: ask the person first. Scope: deploy:create.

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

Parameters

NameInTypeDescription
journey_idpathstring · requiredDeploy id from start_deploy.

Responses

StatusDescriptionBody
2XXSuccess: the JSON body the route returns (see the description for its fields).object
401Key missing or invalidError
4XXRefused: act on detail.code, then follow detail.next_action (404 not_found while the service is not open to the account).Error

Examples

curl

curl -X DELETE "$GALON_API_BASE/deploy/journeys/<journey_id>/preview" \
  -H "Authorization: Bearer $GALON_API_KEY"