spad.site-creation-finalize ​
Finalize SPAD site creation
Mark a SPAD site as active once site-owned infrastructure is ready.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | Site ID |
organization_uuid | string | No | — | Organization ID |
slug | string | No | — | Site slug |
s3_bucket_name | string | No | — | Provisioned bucket name |
cloudfront_domain | string | No | — | Provisioned CloudFront domain |
resources_created | list | No | — | Provisioned resources |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | Site marked active |
slug | string | No | — | Site slug propagated from input |
s3_bucket_name | string | No | — | Provisioned bucket name propagated from input |
cloudfront_domain | string | No | — | Provisioned CloudFront domain propagated from input |
resources_created | list | No | — | Accumulated list of provisioned resources |
completed_at | string | No | — | ISO8601 timestamp when finalize completed |
failed_at | string | No | — | ISO8601 timestamp when finalize failed (failure path only) |
failure_reason | string | No | — | Reason recorded on the failure path |
organization_uuid | string | No | — | Organization ID |
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 |
|---|---|---|---|---|---|
pending | Yes | No | — | run | Finalize step accepted |
run | No | No | — | complete | Applying final site status updates |
completed | No | Yes | Yes | — | Site creation finalized |
failed | No | Yes | No | — | Finalize step failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | Start finalize execution |
run | complete | completed | Mark finalize completed |
* (any state) | fail | failed | Mark finalize failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.site-creation-finalize",
"initial_data": {
"site_uuid": "value"
}
}