spad.redeploy ​
Creates a new deployment from an existing deployment
Creates a new deployment from an existing deployment.
Input fields: deployment_id, site_id, original_deployment_id, organization_id (optional)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
deployment_uuid | string | Yes | — | SpadDeployment.id created for the new deployment run |
site_uuid | string | Yes | — | SpadSite.id to redeploy |
original_deployment_uuid | string | Yes | — | SpadDeployment.id of the prior deployment being reused |
organization_uuid | string | No | — | Organization that owns the site |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
deployment_uuid | string | Yes | — | SpadDeployment.id for the new deployment |
original_deployment_uuid | string | Yes | — | SpadDeployment.id the new deployment is based on |
site_uuid | string | Yes | — | Site being redeployed |
organization_uuid | string | No | — | Organization that owns the site |
source_type | string | Yes | — | Copied from the original deployment |
source_ref | string | No | — | Copied from the original deployment |
commit_sha | string | No | — | Copied from the original deployment |
build_config_uuid | string | No | — | Copied from the original deployment |
deployment_workflow_uuid | string | Yes | — | Child manual-deployment workflow id started by this redeploy |
dispatch_workflow_uuid | string | Yes | — | Target dispatch workflow id (existing or newly started) |
initiated_at | string | Yes | — | ISO8601 timestamp when the redeploy was initiated |
started_at | string | Yes | — | ISO8601 timestamp when the child deployment workflow was started |
completed_at | string | No | — | ISO8601 timestamp when the workflow reached COMPLETED |
failed_at | string | No | — | ISO8601 timestamp when the workflow reached FAILED |
failure_reason | string | No | — | Reason recorded on the failure path |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | start_deployment | — |
starting | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | start_deployment | starting | — |
starting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.redeploy",
"initial_data": {
"deployment_uuid": "value",
"site_uuid": "value",
"original_deployment_uuid": "value"
}
}