Create R2 Sync
Create a Cloudflare R2 Sync for a collection and start the initial backfill. The endpoint is derived from account_id and jurisdiction. Returns the sync; indexing runs asynchronously.
Path parameters
Headers
Request
Cloudflare account ID (from the R2 dashboard URL). Determines the endpoint.
R2 jurisdiction; selects the endpoint.
Glob patterns; only matching keys are synced.
Glob patterns; matching keys are excluded.
Scheduled reconcile cadence (minimum 5; null = manual).
Response
‘iam_role’ for assume-role syncs, ‘access_key’ for access-key syncs.
S3-compatible endpoint URL (access-key syncs on non-AWS providers); null for AWS S3.
True once an event-webhook secret has been minted.
Event-webhook subscribe URL (only surfaced by the webhooks endpoint).
Effective (already-clamped) cadence; null = manual.