Skip to content
Proud to collaborate with Microsoft for Startups

cloudflare.r2.update-cors ​

Replace CORS rules on a Cloudflare R2 bucket (CF + DB)

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-cloudflare
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloudflare_r2_bucket_uuiduuidYes——
ruleslistYes—Replacement CORS rules array (full-replace)
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cloudflare_r2_bucket_uuiduuidYes——
ruleslistYes—Replacement CORS rules array (full-replace)
actorstringNo——
bucket_namestringNo——
updated_atstringNo——
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—executePending update
completedNoYesYes—CORS updated
failedNoYesNo—Update failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "cloudflare.r2.update-cors",
  "initial_data": {
    "organization_uuid": "value",
    "cloudflare_r2_bucket_uuid": "value",
    "rules": "value"
  }
}