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
| Name | In | Type | Description |
|---|---|---|---|
journey_id | path | string · required | Deploy id from start_deploy. |
Responses
| Status | Description | Body |
|---|---|---|
2XX | Success: the JSON body the route returns (see the description for its fields). | object |
401 | Key missing or invalid | Error |
4XX | Refused: 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"