Skip to content
Proud to collaborate with Microsoft for Startups

cloudflare.pages.rollback ​

Roll a Cloudflare Pages project's production traffic back to a previous successful deployment.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-cloudflare
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
connection_uuiduuidYes—Cloudflare CloudConnection UUID.
project_namestringYes—Pages project name.
target_deployment_refstringNo—Deployment ref to roll back to; defaults to the previous successful production deployment.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
connection_uuiduuidYes—Cloudflare CloudConnection UUID.
project_namestringYes—Pages project name.
target_deployment_refstringNo—Deployment ref to roll back to; defaults to the previous successful production deployment.
rolled_back_tostringNo—Deployment ref now serving production.
previous_deployment_refstringNo—Deployment that was rolled away from.
production_urlstringNo—Production URL.
statusstringNo—Rollback status.
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
failure_typestringNo—Engine-stamped failure category (atomic path)
failed_actionstringNo—Engine-stamped action method that raised (atomic path)

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—resolve_targetInputs accepted
resolvedNoNo—executeRollback target resolved
rolled_backNoNo—persistProduction traffic rolled back
completedNoYesYes—Rollback complete
failedNoYesNo—Rollback failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingresolve_targetresolved—
resolvedexecuterolled_back—
rolled_backpersistcompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "cloudflare.pages.rollback",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "project_name": "value"
  }
}