Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
deployment_uuidstringYes—SpadDeployment.id created for the new deployment run
site_uuidstringYes—SpadSite.id to redeploy
original_deployment_uuidstringYes—SpadDeployment.id of the prior deployment being reused
organization_uuidstringNo—Organization that owns the site

Output Schema ​

FieldTypeRequiredDefaultDescription
deployment_uuidstringYes—SpadDeployment.id for the new deployment
original_deployment_uuidstringYes—SpadDeployment.id the new deployment is based on
site_uuidstringYes—Site being redeployed
organization_uuidstringNo—Organization that owns the site
source_typestringYes—Copied from the original deployment
source_refstringNo—Copied from the original deployment
commit_shastringNo—Copied from the original deployment
build_config_uuidstringNo—Copied from the original deployment
deployment_workflow_uuidstringYes—Child manual-deployment workflow id started by this redeploy
dispatch_workflow_uuidstringYes—Target dispatch workflow id (existing or newly started)
initiated_atstringYes—ISO8601 timestamp when the redeploy was initiated
started_atstringYes—ISO8601 timestamp when the child deployment workflow was started
completed_atstringNo—ISO8601 timestamp when the workflow reached COMPLETED
failed_atstringNo—ISO8601 timestamp when the workflow reached FAILED
failure_reasonstringNo—Reason recorded on the failure path
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—start_deployment—
startingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedstart_deploymentstarting—
startingcompletecompleted—
* (any state)failfailed—

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