data.cloudflare.pages.persist ​
Persist a CloudflarePagesProject row (create or restore)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | Yes | — | Cloudflare Pages project name. |
account_ref | string | No | — | Cloudflare account identifier |
production_branch | string | No | — | Production branch name. |
github_repository_uuid | uuid | No | — | GitHubRepository UUID this Pages project builds from. |
deployment_ref | string | No | — | Latest Cloudflare Pages deployment identifier |
production_url | string | No | — | Production URL after promotion. |
domains | list | No | — | Custom domains bound to the project. |
status | string | No | — | CloudflarePagesStatus value (pending/deployed/failed/deleted). |
provider_metadata | dict | No | — | Opaque provider metadata blob. |
actor | string | No | — | Actor identifier for audit purposes. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pages_project_uuid | uuid | Yes | — | UUID of the persisted CloudflarePagesProject row. |
project_name | string | Yes | — | Cloudflare Pages project name. |
created | boolean | Yes | — | True if a new project row was created. |
restored | boolean | Yes | — | True if a soft-deleted project row was restored. |
persisted_at | string | Yes | — | Timestamp when the project row was persisted. |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Persist pages project |
completed | No | Yes | Yes | — | Persisted |
failed | No | Yes | No | — | Persist failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.cloudflare.pages.persist",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"project_name": "value"
}
}