Cloudflare
  1. Zone Settings
Cloudflare
  • API Shield Endpoint Management
    • Retrieve API Discovery results for a zone
    • Retrieve information about all operations on a zone
    • Add operations to a zone
    • Delete an operation
    • Retrieve information about an operation
    • Retrieve operations and features as OpenAPI schemas
  • API Shield Settings
    • Retrieve information about specific configuration properties
    • Set configuration properties
  • ASN Intelligence
    • Get ASN Overview
    • Get ASN Subnets
  • Access Bookmark applications (Deprecated)
    • List Bookmark applications
    • Delete a Bookmark application
    • Get a Bookmark application
    • Create a Bookmark application
    • Update a Bookmark application
  • Access applications
    • List Access applications
    • Add a Bookmark application
    • Delete an Access application
    • Get an Access application
    • Update a Bookmark application
    • Revoke service tokens
    • Test Access policies
  • Access authentication logs
    • Get Access authentication logs
  • Access groups
    • List Access groups
    • Create an Access group
    • Delete an Access group
    • Get an Access group
    • Update an Access group
  • Access identity providers
    • List Access identity providers
    • Add an Access identity provider
    • Delete an Access identity provider
    • Get an Access identity provider
    • Update an Access identity provider
  • Access key configuration
    • Get the Access key configuration
    • Update the Access key configuration
    • Rotate Access keys
  • Access mTLS authentication
    • List mTLS certificates
    • Add an mTLS certificate
    • Delete an mTLS certificate
    • Get an mTLS certificate
    • Update an mTLS certificate
  • Access policies
    • Delete an Access policy
    • Get an Access policy
    • Update an Access policy
    • List Access policies
    • Create an Access policy
  • Access service tokens
    • List service tokens
    • Create a service token
    • Delete a service token
    • Update a service token
    • Refresh a service token
    • Rotate a service token
  • Access short-lived certificate CAs
    • List short-lived certificate CAs
    • Delete a short-lived certificate CA
    • Get a short-lived certificate CA
    • Create a short-lived certificate CA
  • Account Billing Profile
    • Billing Profile Details
  • Account Load Balancer Monitors
    • List Monitors
    • Create Monitor
    • Delete Monitor
    • Monitor Details
    • Patch Monitor
    • Update Monitor
    • Preview Monitor
    • List Monitor References
    • Preview Result
  • Account Load Balancer Pools
    • List Pools
    • Patch Pools
    • Create Pool
    • Delete Pool
    • Pool Details
    • Patch Pool
    • Update Pool
    • Pool Health Details
    • Preview Pool
    • List Pool References
  • Account Load Balancer Search
    • Search Resources
  • Account Members
    • List Members
    • Add Member
    • Remove Member
    • Member Details
    • Update Member
  • Account Railguns
    • List Railguns
    • Create Railgun
    • Delete a Railgun
    • Railgun details
    • Update Railgun
  • Account Roles
    • List Roles
    • Role Details
  • Account Rulesets
    • List account rulesets
    • Create an account ruleset
    • Get an account entry point ruleset
    • Update an account entry point ruleset
    • List an account entry point ruleset's versions
    • Get an account entry point ruleset version
    • Delete an account ruleset
    • Get an account ruleset
    • Update an account ruleset
    • Create an account ruleset rule
    • Delete an account ruleset rule
    • Update an account ruleset rule
    • List an account ruleset's versions
    • Delete an account ruleset version
    • Get an account ruleset version
    • List an account ruleset version's rules by tag
  • Account Subscriptions
    • List Subscriptions
    • Create Subscription
    • Delete Subscription
    • Update Subscription
  • Account-Level Custom Nameservers
    • List Account Custom Nameservers
    • Add Account Custom Nameserver
    • Get Eligible Zones for Account Custom Nameservers
    • Verify Account Custom Nameserver Glue Records
    • Delete Account Custom Nameserver
  • Account-Level Custom Nameservers Usage for a Zone
    • Get Account Custom Nameserver Related Zone Metadata
    • Set Account Custom Nameserver Related Zone Metadata
  • Accounts
    • List Accounts
    • Account Details
    • Update Account
  • Analyze Certificate
    • Analyze Certificate
  • Argo Analytics for Geolocation
    • Argo Analytics for a zone at different PoPs
  • Argo Analytics for Zone
    • Argo Analytics for a zone
  • Argo Smart Routing
    • Get Argo Smart Routing setting
    • Patch Argo Smart Routing setting
  • Argo Tunnel
    • List Argo Tunnels
    • Create an Argo Tunnel
    • Delete an Argo Tunnel
    • Get an Argo Tunnel
    • Clean up Argo Tunnel connections
  • Audit Logs
    • Get account audit logs
    • Get organization audit logs
    • Get user audit logs
  • Available Page Rules settings
    • List available Page Rules settings
  • Cache Rules
    • List Cache Rules
    • Update Cache Rules
  • Certificate Packs
    • List Certificate Packs
    • Order Certificate Pack
    • Order Advanced Certificate Manager Certificate Pack
    • Get Certificate Pack Quotas
    • Delete Advanced Certificate Manager Certificate Pack
    • Get Certificate Pack
    • Restart Validation for Advanced Certificate Manager Certificate Pack
  • Client
    • Rerun the Activation Check
  • Cloudflare IPs
    • Cloudflare IP Details
  • Cloudflare Images
    • List images
    • Upload an image via URL
    • Images usage statistics
    • Delete image
    • Image details
    • Update image
    • Base image
    • Create authenticated direct upload URL V2
  • Cloudflare Images Keys
    • List Signing Keys
  • Cloudflare Images Variants
    • List variants
    • Create a variant
    • Delete a variant
    • Variant details
    • Update a variant
  • Cloudflare Tunnel
    • List Cloudflare Tunnels
    • Create a Cloudflare Tunnel
    • Delete a Cloudflare Tunnel
    • Get a Cloudflare Tunnel
    • Update a Cloudflare Tunnel
    • Clean up Cloudflare Tunnel connections
    • List Cloudflare Tunnel connections
    • Get a Cloudflare Tunnel token
  • Cloudflare Tunnel configuration
    • Get configuration
    • Put configuration
  • Config Rules
    • List Config Rules
    • Update Config Rules
  • Custom Error Responses
    • Get Custom Error Responses
    • Update Custom Error Responses
  • Custom Hostname Fallback Origin for a Zone
    • Delete Fallback Origin for Custom Hostnames
    • Get Fallback Origin for Custom Hostnames
    • Update Fallback Origin for Custom Hostnames
  • Custom Hostname for a Zone
    • List Custom Hostnames
    • Create Custom Hostname
    • Delete Custom Hostname (and any issued SSL certificates)
    • Custom Hostname Details
    • Edit Custom Hostname
  • Custom SSL for a Zone
    • List SSL Configurations
    • Create SSL Configuration
    • Re-prioritize SSL Certificates
    • Delete SSL Configuration
    • SSL Configuration Details
    • Edit SSL Configuration
  • Custom pages for a zone
    • List custom pages
    • Get a custom page
    • Update a custom page
  • Custom pages for an account
    • List custom pages
    • Get a custom page
    • Update a custom page
  • DLP Pattern Validation
    • Validate pattern
  • DLP Profiles
    • List all profiles
    • Create custom profiles
    • Delete custom profile
    • Get custom profile
    • Update custom profile
    • Get predefined profile
    • Update predefined profile
    • Get DLP Profile
  • DNS Analytics
    • Table
    • By Time
  • DNS Firewall
    • List DNS Firewall Clusters
    • Create DNS Firewall Cluster
    • Delete DNS Firewall Cluster
    • DNS Firewall Cluster Details
    • Update DNS Firewall Cluster
  • DNS Firewall (Legacy)
    • List DNS Firewall Clusters
    • Create DNS Firewall Cluster
    • Delete DNS Firewall Cluster
    • DNS Firewall Cluster Details
    • Update DNS Firewall Cluster
  • DNS Firewall Analytics
    • Table
    • By Time
  • DNS Firewall Analytics (Legacy)
    • Table
    • By Time
  • DNS Records for a Zone
    • List DNS Records
    • Create DNS Record
    • Export DNS Records
    • Import DNS Records
    • Scan DNS Records
    • Delete DNS Record
    • DNS Record Details
    • Patch DNS Record
    • Update DNS Record
  • DNSSEC
    • Delete DNSSEC records
    • DNSSEC Details
    • Edit DNSSEC Status
  • Device Managed Networks
    • List Device Managed Networks
    • Create Device Managed Network
    • Delete Device Managed Network
    • Device Managed Network Details
    • Update Device Managed Network
  • Device Posture Integrations
    • List Device Posture Integrations
    • Create Device Posture Integration
    • Delete Device Posture Integration
    • Device Posture Integration Details
    • Update Device Posture Integration
  • Device Posture Rules
    • List Device Posture Rules
    • Create Device Posture Rule
    • Delete Device Posture Rule
    • Device Posture Rules Details
    • Update Device Posture Rule
  • Devices
    • List Devices
    • List Device Settings Policies
    • Get Default Device Settings Policy
    • Update Default Device Settings Policy
    • Create Device Settings Policy
    • Get Split Tunnel Exclude List
    • Set Split Tunnel Exclude List
    • Get Local Domain Fallback List
    • Set Local Domain Fallback List
    • Get Split Tunnel Include List
    • Set Split Tunnel Include List
    • Delete Device Settings Policy
    • Get Device Settings Policy by ID
    • Update Device Settings Policy
    • Get Split Tunnel Exclude List for a Device Settings Policy
    • Set Split Tunnel Exclude List for a Device Settings Policy
    • Get Local Domain Fallback List for a Device Settings Policy
    • Set Local Domain Fallback List for a Device Settings Policy
    • Get Split Tunnel Include List for a Device Settings Policy
    • Set Split Tunnel Include List for a Device Settings Policy
    • Revoke Devices
    • Unrevoke Devices
    • Device Details
    • List Admin Override code for device
  • Diagnostics
    • Traceroute
  • Domain History
    • Get Domain History
  • Domain Intelligence
    • Get Domain Details
    • Get Multiple Domain Details
  • Durable Objects Namespace
    • List Namespaces
    • List Objects
  • Email Routing destination addresses
    • List destination addresses
    • Create a destination address
    • Delete destination address
    • Get a destination address
  • Email Routing routing rules
    • List routing rules
    • Create routing rule
    • Get catch-all rule
    • Update catch-all rule
    • Delete routing rule
    • Get routing rule
    • Update routing rule
  • Email Routing settings
    • Get Email Routing settings
    • Disable Email Routing
    • Email Routing - DNS settings
    • Enable Email Routing
  • Filters
    • Delete filters
    • List filters
    • Create filters
    • Update filters
    • Delete a filter
    • Get a filter
    • Update a filter
  • Firewall rules
    • Delete firewall rules
    • List firewall rules
    • Update priority of firewall rules
    • Create firewall rules
    • Update firewall rules
    • Delete a firewall rule
    • Get a firewall rule
    • Update priority of a firewall rule
    • Update a firewall rule
  • Health Checks
    • List Health Checks
    • Create Health Check
    • Create Preview Health Check
    • Delete Preview Health Check
    • Health Check Preview Details
    • Delete Health Check
    • Health Check Details
    • Patch Health Check
    • Update Health Check
  • IP Access rules for a user
    • List IP Access rules
    • Create an IP Access rule
    • Delete an IP Access rule
    • Update an IP Access rule
  • IP Access rules for a zone
    • List IP Access rules
    • Create an IP Access rule
    • Delete an IP Access rule
    • Update an IP Access rule
  • IP Access rules for an account
    • List IP Access rules
    • Create an IP Access rule
    • Delete an IP Access rule
    • Get an IP Access rule
    • Update an IP Access rule
  • IP Address Management Address Maps
    • Remove an account membership from an Address Map
    • Add an account membership to an Address Map
    • List Address Maps
    • Create Address Map
    • Delete Address Map
    • Address Map Details
    • Update Address Map
    • Remove an IP from an Address Map
    • Add an IP to an Address Map
    • Remove a zone membership from an Address Map
    • Add a zone membership to an Address Map
  • IP Address Management Dynamic Advertisement
    • Get Advertisement Status
    • Update Prefix Dynamic Advertisement Status
  • IP Address Management Prefix Delegation
    • List Prefix Delegations
    • Create Prefix Delegation
    • Delete Prefix Delegation
  • IP Address Management Prefixes
    • Upload LOA Document
    • Download LOA Document
    • List Prefixes
    • Add Prefix
    • Delete Prefix
    • Prefix Details
    • Update Prefix Description
  • IP Intelligence
    • Get IP Overview
  • IP List
    • Get IP Lists
  • Keyless SSL for a Zone
    • List Keyless SSL Configurations
    • Create Keyless SSL Configuration
    • Delete Keyless SSL Configuration
    • Get Keyless SSL Configuration
    • Edit Keyless SSL Configuration
  • Lists
    • Get lists
    • Create a list
    • Get bulk operation status
    • Delete a list
    • Get a list
    • Update a list
    • Delete list items
    • Get list items
    • Create list items
    • Update all list items
    • Get a list item
  • Load Balancer Healthcheck Events
    • List Healthcheck Events
  • Load Balancer Monitors
    • List Monitors
    • Create Monitor
    • Delete Monitor
    • Monitor Details
    • Patch Monitor
    • Update Monitor
    • Preview Monitor
    • List Monitor References
    • Preview Result
  • Load Balancer Pools
    • List Pools
    • Patch Pools
    • Create Pool
    • Delete Pool
    • Pool Details
    • Patch Pool
    • Update Pool
    • Pool Health Details
    • Preview Pool
    • List Pool References
  • Load Balancer Regions
    • List Regions
    • Get Region
  • Load Balancers
    • Delete Load Balancer
    • Load Balancer Details
    • Patch Load Balancer
    • Update Load Balancer
    • List Load Balancers
    • Create Load Balancer
  • Logpush Jobs
    • List fields
    • List Logpush jobs for a dataset
    • List Logpush jobs
    • Create Logpush job
    • Delete Logpush job
    • Get Logpush job details
    • Update Logpush job
    • Get ownership challenge
    • Validate ownership challenge
    • Check destination exists
    • Validate origin
  • Logs Received
    • Get log retention flag
    • Update log retention flag
    • Get logs RayIDs
    • Get logs received
    • List fields
  • Magic GRE tunnels
    • List GRE tunnels
    • Create GRE tunnels
    • Update multiple GRE tunnels
    • Delete GRE Tunnel
    • List GRE Tunnel Details
    • Update GRE Tunnel
  • Magic IPsec tunnels
    • List IPsec tunnels
    • Create IPsec tunnels
    • Update multiple IPsec tunnels
    • Delete IPsec Tunnel
    • List IPsec tunnel details
    • Update IPsec Tunnel
    • Generate Pre Shared Key (PSK) for IPsec tunnels
  • Magic Interconnects
    • List interconnects
    • Update multiple interconnects
    • List interconnect Details
    • Update interconnect
  • Magic Network Monitoring Configuration
    • Delete account configuration
    • List account configuration
    • Update account configuration fields
    • Create account configuration
    • Update an entire account configuration
    • List rules and account configuration
  • Magic Network Monitoring Rules
    • List rules
    • Create rules
    • Update rules
    • Delete rule
    • Get rule
    • Update rule
    • Update advertisement for rule
  • Magic PCAP collection
    • List packet capture requests
    • Create PCAP request
    • List PCAPs Bucket Ownership
    • Add buckets for full packet captures
    • Validate buckets for full packet captures
    • Delete buckets for full packet captures
    • Get PCAP request
    • Download Simple PCAP
  • Magic Static Routes
    • List Routes
    • Create Routes
    • Update Many Routes
    • Delete Route
    • Route Details
    • Update Route
  • Managed Transforms
    • List Managed Transforms
    • Update status of Managed Transforms
  • Miscategorization
    • Create Miscategorization
  • Notification Alert Types
    • Get Alert Types
  • Notification History
    • List History
  • Notification Mechanism Eligibility
    • Get delivery mechanism eligibility
  • Notification destinations with PagerDuty
    • List PagerDuty services
  • Notification policies
    • List Notification policies
    • Create a Notification policy
    • Delete a Notification policy
    • Get a Notification policy
    • Update a Notification policy
  • Notification webhooks
    • List webhooks
    • Create a webhook
    • Delete a webhook
    • Get a webhook
    • Update a webhook
  • Organization Invites
    • List Invitations
    • Create Invitation
    • Cancel Invitation
    • Invitation Details
    • Edit Invitation Roles
  • Organization Members
    • List Members
    • Remove Member
    • Member Details
    • Edit Member Roles
  • Organization Railgun
    • List Railguns
    • Create Railgun
    • Delete Railgun
    • Railgun details
    • Enable or disable a Railgun
    • Get Railgun zones
  • Organization Roles
    • List Roles
    • Role Details
  • Organizations (Deprecated)
    • Organization Details
    • Edit Organization
  • Origin CA
    • List Certificates
    • Create Certificate
    • Revoke Certificate
    • Get Certificate
  • Origin Rules
    • List Origin Rules
    • Update Origin Rules
  • Page Rules
    • List Page Rules
    • Create a Page Rule
    • Delete a Page Rule
    • Get a Page Rule
    • Edit a Page Rule
    • Update a Page Rule
  • Page Shield
    • Get Page Shield settings
    • Update Page Shield settings
    • List Page Shield connections
    • Get a Page Shield connection
    • List Page Shield scripts
    • Get a Page Shield script
  • Pages Deployment
    • Get deployments
    • Create deployment
    • Delete deployment
    • Get deployment info
    • Get deployment logs
    • Retry deployment
    • Rollback deployment
  • Pages Domains
    • Get domains
    • Add domain
    • Delete domain
    • Get domain
    • Patch domain
  • Pages Project
    • Get projects
    • Create project
    • Delete project
    • Get project
    • Update project
  • Passive DNS by IP
    • Get Passive DNS by IP
  • Per-hostname Authenticated Origin Pull
    • Enable or Disable a Hostname for Client Authentication
    • List Certificates
    • Upload a Hostname Client Certificate
    • Delete Hostname Client Certificate
    • Get the Hostname Client Certificate
    • Get the Hostname Status for Client Authentication
  • Permission Groups
    • List Permission Groups
  • Phishing URL Information
    • Get results for a URL scan
  • Phishing URL Scanner
    • Submit suspicious URL for scanning
  • Queue
    • List Queues
    • Create Queue
    • Delete Queue
    • Queue Details
    • Update Queue
    • List Queue Consumers
    • Create Queue Consumer
    • Delete Queue Consumer
    • Update Queue Consumer
  • R2 Bucket
    • List Buckets
    • Create Bucket
    • Delete Bucket
  • Radar Annotations
    • Get outages annotations
    • Get top outages annotations
  • Radar Attacks
    • Get a summary of layer 3 attacks
    • Get layer 3 attacks time series
    • Get layer 3 attacks by network protocol, over time
    • Get a summary of layer 7 attacks
    • Get attacks layer 7 time series
    • Get layer 7 attacks by mitigation technique, over time
    • Get layer 7 top origin ASes
    • Get layer 7 top attack pairs (origin and target locations)
    • Get layer 7 top origin locations
    • Get layer 7 top target locations
  • Radar BGP
    • Get BGP route leak events
    • Get BGP time series
    • Get top autonomous systems
    • Get top prefixes
  • Radar DNS
    • Get top autonomous systems by DNS queries.
    • Get top locations by DNS queries
  • Radar Datasets
    • Get Datasets
    • Get Dataset download url
    • Get Dataset csv Stream
  • Radar Entities
    • Get autonomous systems
    • Get autonomous system information by IP address. Population estimates come from APNIC (refer to https://labs.apnic.net/?p=526).
    • Get autonomous system (AS) by ID
    • Get locations
    • Get location
  • Radar Http
    • Get a summary of bot classes
    • Get a summary of device types
    • Get a summary of HTTP protocols
    • Get a summary of HTTP versions
    • Get a summary of IP versions
    • Get a summary of operating systems
    • Get a summary of TLS versions
    • Get time series of bot classes
    • Get time series of user agents
    • Get time series of user agents aggregated in families
    • Get time series of device types
    • Get time series of HTTP protocols
    • Get time series of HTTP versions
    • Get time series of IP versions
    • Get time series of operating systems
    • Get time series of TLS versions
    • Get top autonomous systems by HTTP requests
    • Get top autonomous systems by bot class
    • Get top autonomous systems by device type
    • Get top autonomous systems by HTTP protocol
    • Get top autonomous systems by HTTP version
    • Get top autonomous systems by IP version
    • Get top autonomous systems by operating system
    • Get top autonomous systems by TLS version
    • Get top user agents aggregated in families by HTTP requests
    • Get top user agents by HTTP requests
    • Get top locations by HTTP requests
    • Get top locations by bot class
    • Get top locations by device type
    • Get top locations by HTTP protocol
    • Get top locations by HTTP version
    • Get top locations by IP version
    • Get top locations by operating system
    • Get top locations by TLS version
  • Radar Netflows
    • Get NetFlow time series
    • Get top autonomous systems
    • Get top locations
  • Radar Ranking
    • Get Domains Rank details
    • Get Domains Rank time series
    • Get Domains Rank top
  • Radar Search
    • Search for locations, autonomous systems (AS) and reports
  • Radar Special Events
    • List Special Events
    • Get a Single Special Events
    • Get Special Events time series
  • Radar Verified Bots
    • Get top verified bots by HTTP requests
    • Get top verified bot categories by HTTP requests
  • Railgun
    • List Railguns
    • Create Railgun
    • Delete a Railgun
    • Railgun details
    • Enable or disable a Railgun
    • List Railgun zones
  • Railgun Connections
    • List Connections
    • Create connection
    • Delete connection
    • Connection details
    • Update connection
  • Railgun Connections for a Zone
    • List available Railguns
    • Railgun details
    • Connect or disconnect a Railgun
    • Test Railgun connection
  • Rate limits for a zone
    • List rate limits
    • Create a rate limit
    • Delete a rate limit
    • Get a rate limit
    • Update a rate limit
  • Registrar Domains
    • List domains
    • Get domain
    • Update domain
  • SSL Verification
    • SSL Verification Details
    • Edit SSL Certificate Pack Validation Method
  • SSL
    • TLS Mode Recommendation
      • SSL/TLS Recommendation
  • Secondary DNS (ACL)
    • List ACLs
    • Create ACL
    • Delete ACL
    • ACL Details
    • Update ACL
  • Secondary DNS (Peer)
    • List Peers
    • Create Peer
    • Delete Peer
    • Peer Details
    • Update Peer
  • Secondary DNS (Primary Zone)
    • Delete Primary Zone Configuration
    • Primary Zone Configuration Details
    • Create Primary Zone Configuration
    • Update Primary Zone Configuration
    • Disable Outgoing Zone Transfers
    • Enable Outgoing Zone Transfers
    • Force DNS NOTIFY
    • Get Outgoing Zone Transfer Status
  • Secondary DNS (Secondary Zone)
    • Force AXFR
    • Delete Secondary Zone Configuration
    • Secondary Zone Configuration Details
    • Create Secondary Zone Configuration
    • Update Secondary Zone Configuration
  • Secondary DNS (TSIG)
    • List TSIGs
    • Create TSIG
    • Delete TSIG
    • TSIG Details
    • Update TSIG
  • Single Redirect Rules
    • List Single Redirect Rules
    • Update Single Redirect Rules
  • Spectrum Aggregate Analytics
    • Get current aggregated analytics
  • Spectrum Analytics (By Time)
    • Get analytics by time
  • Spectrum Analytics (Summary)
    • Get analytics summary
  • Spectrum Applications
    • List Spectrum applications
    • Create Spectrum application using a name for the origin
    • Delete Spectrum application
    • Get Spectrum application configuration
    • Update Spectrum application configuration using a name for the origin
  • Stream Live Inputs
    • List live inputs
    • Create a live input
    • Delete a live input
    • Retrieve a live input
    • Update a live input
    • List all outputs associated with a specified live input
    • Create a new output, connected to a live input
    • Delete an output
    • Update an output
  • Stream MP4 Downloads
    • List downloads
    • Create downloads
    • List downloads
    • Create downloads
  • Stream Signing Keys
    • List signing keys
    • Create signing keys
    • Delete signing keys
  • Stream Subtitles
    • Captions
      • List captions or subtitles
      • Delete captions or subtitles
      • Upload captions or subtitles
      • List captions or subtitles
      • Delete captions or subtitles
      • Upload captions or subtitles
  • Stream Video Clipping
    • Clip videos given a start and end time
  • Stream Videos
    • List videos
    • Initiate video uploads using TUS
    • Upload videos from a URL
    • Upload videos via direct upload URLs
    • Delete video
    • Retrieve video details
    • Associate videos to NFTs
    • Retreieve embed Code HTML
    • Create signed URL tokens for videso
  • Stream Watermark Profile
    • List watermark profiles
    • Create watermark profiles via basic upload
    • Delete watermark profiles
    • Watermark profile details
  • Stream Webhook
    • Delete webhooks
    • View webhooks
    • Create webhooks
  • Total TLS
    • Total TLS Settings Details
    • Enable or Disable Total TLS
  • Transform Rules
    • List Transform Rules
    • Update Transform Rules
  • Tunnel Virtual Network
    • List virtual networks
    • Create a virtual network
    • Delete a virtual network
    • Update a virtual network
  • Tunnel route
    • List tunnel routes
    • Get tunnel route by IP
    • Delete a tunnel route
    • Update a tunnel route
    • Create a tunnel route
  • URL Normalization
    • Get URL normalization settings
    • Update URL normalization settings
  • Universal SSL Settings for a Zone
    • Universal SSL Settings Details
    • Edit Universal SSL Settings
  • User
    • User Details
    • Edit User
  • User API Tokens
    • List Tokens
    • Create Token
    • Verify Token
    • Delete Token
    • Token Details
    • Update Token
    • Roll Token
  • User Agent Blocking rules
    • List User Agent Blocking rules
    • Create a User Agent Blocking rule
    • Delete a User Agent Blocking rule
    • Get a User Agent Blocking rule
    • Update a User Agent Blocking rule
  • User Billing History
    • Billing History Details
  • User Billing Profile
    • Billing Profile Details
  • User Subscription
    • Get User Subscriptions
    • Delete User Subscription
    • Update User Subscription
  • User's Account Memberships
    • List Memberships
    • Delete Membership
    • Membership Details
    • Update Membership
  • User's Invites
    • List Invitations
    • Invitation Details
    • Respond to Invitation
  • User's Organizations
    • List Organizations
    • Leave Organization
    • Organization Details
  • WAF overrides
    • List WAF overrides
    • Create a WAF override
    • Delete a WAF override
    • Get a WAF override
    • Update WAF override
  • WAF packages
    • List WAF packages
    • Get a WAF package
    • Update a WAF package
  • WAF rule groups
    • List WAF rule groups
    • Get a WAF rule group
    • Update a WAF rule group
  • WAF rules
    • List WAF rules
    • Get a WAF rule
    • Update a WAF rule
  • WHOIS Record
    • Get WHOIS Record
  • Waiting Room
    • List waiting rooms
    • Create waiting room
    • Create a custom waiting room page preview
    • Delete waiting room
    • Waiting room details
    • Patch waiting room
    • Update waiting room
    • List events
    • Create event
    • Delete event
    • Event details
    • Patch event
    • Update event
    • Preview active event details
    • List Waiting Room Rules
    • Create Waiting Room Rule
    • Replace Waiting Room Rules
    • Delete Waiting Room Rule
    • Patch Waiting Room Rule
    • Get waiting room status
  • Web3 Hostname
    • List Web3 Hostnames
    • Create Web3 Hostname
    • Delete Web3 Hostname
    • Web3 Hostname Details
    • Edit Web3 Hostname
    • IPFS Universal Path Gateway Content List Details
    • Update IPFS Universal Path Gateway Content List
    • List IPFS Universal Path Gateway Content List Entries
    • Create IPFS Universal Path Gateway Content List Entry
    • Delete IPFS Universal Path Gateway Content List Entry
    • IPFS Universal Path Gateway Content List Entry Details
    • Edit IPFS Universal Path Gateway Content List Entry
  • Worker Account Settings
    • Fetch Worker Account Settings
    • Create Worker Account Settings
  • Worker Binding (Deprecated)
    • List Bindings
  • Worker Cron Trigger
    • Get Cron Triggers
    • Update Cron Triggers
  • Worker Deployments
    • List Deployments
    • Get Deployment Detail
  • Worker Domain
    • List Domains
    • Attach to Domain
    • Detach from Domain
    • Get a Domain
  • Worker Filters (Deprecated)
    • List Filters
    • Create Filter
    • Delete Filter
    • Update Filter
  • Worker Routes
    • List Routes
    • Create Route
    • Delete Route
    • Get Route
    • Update Route
  • Worker Script
    • List Workers
    • Delete Worker
    • Download Worker
    • Upload Worker Module
    • Fetch Usage Model
    • Update Usage Model
  • Worker Script (Deprecated)
    • Delete Worker
    • Download Worker
    • Upload Worker
  • Worker Subdomain
    • Get Subdomain
    • Create Subdomain
  • Worker Tail Logs
    • List Tails
    • Start Tail
    • Delete Tail
  • Workers KV Namespace
    • List Namespaces
    • Create a Namespace
    • Remove a Namespace
    • Rename a Namespace
    • Delete multiple key-value pairs
    • Write multiple key-value pairs
    • List a Namespace's Keys
    • Read the metadata for a key
    • Delete key-value pair
    • Read key-value pair
    • Write key-value pair with metadata
  • Workers KV Request Analytics
    • Query Request Analytics
  • Workers KV Stored Data Analytics
    • Query Stored Data Analytics
  • Zero Trust Gateway Application and Application Type mappings
    • List Application and Application Type mappings
  • Zero Trust Gateway Categories
    • List Categories
  • Zero Trust Gateway Locations
    • List Zero Trust Gateway Locations
    • Create Zero Trust Gateway Location
    • Delete Zero Trust Gateway Location
    • Zero Trust Gateway Location Details
    • Update Zero Trust Gateway Location
  • Zero Trust Gateway Proxy Endpoints
    • List Proxy Endpoints
    • Create Proxy Endpoint
    • Delete Proxy Endpoint
    • Proxy Endpoint Details
    • Update Proxy Endpoint
  • Zero Trust Gateway Rules
    • List Zero Trust Gateway Rules
    • Create Zero Trust Gateway Rule
    • Delete Zero Trust Gateway Rule
    • Zero Trust Gateway Rule Details
    • Update Zero Trust Gateway Rule
  • Zero Trust Lists
    • List Zero Trust Lists
    • Create Zero Trust List
    • Delete Zero Trust List
    • Zero Trust List Details
    • Patch Zero Trust List
    • Update Zero Trust List
    • Zero Trust List Items
  • Zero Trust accounts
    • Get device settings for Zero Trust account
    • Update device settings for the Zero Trust account
    • Get Zero Trust account information
    • Create Zero Trust account
    • Get Zero Trust account configuration
    • Update Zero Trust account configuration
    • Get logging settings for the Zero Trust account
    • Update logging settings for the Zero Trust account
  • Zero Trust organization
    • Get your Zero Trust organization
    • Create your Zero Trust organization
    • Update your Zero Trust organization
    • Revoke all Access tokens for a user
  • Zero Trust seats
    • Update a user seat
  • Zero Trust users
    • Get users
    • Get failed logins
  • Zone
    • List Zones
    • Create Zone
    • Delete Zone
    • Zone Details
    • Edit Zone
    • Zone Activation Check
    • Purge Files by Cache-Tags, Host, or Prefix
  • Zone Analytics (Deprecated)
    • Get analytics by Co-locations
    • Get dashboard
  • Zone Cache Settings
    • Get Cache Reserve setting
    • Change Cache Reserve setting
    • Delete variants setting
    • Get variants setting
    • Change variants setting
  • Zone Lockdown
    • List Zone Lockdown rules
    • Create a Zone Lockdown rule
    • Delete a Zone Lockdown rule
    • Get a Zone Lockdown rule
    • Update a Zone Lockdown rule
  • Zone Rate Plan
    • List Available Plans
    • Available Plan Details
    • List Available Rate Plans
  • Zone Rulesets
    • List zone rulesets
    • Create a zone ruleset
    • Get a zone entry point ruleset
    • Update a zone entry point ruleset
    • List a zone entry point ruleset's versions
    • Get a zone entry point ruleset version
    • Delete a zone ruleset
    • Get a zone ruleset
    • Update a zone ruleset
    • Create a zone ruleset rule
    • Delete a zone ruleset rule
    • Update a zone ruleset rule
    • List a zone ruleset's versions
    • Delete a zone ruleset version
    • Get a zone ruleset version
  • Zone Settings
    • Get all Zone settings
      GET
    • Edit zone settings info
      PATCH
    • Get 0-RTT session resumption setting
      GET
    • Change 0-RTT session resumption setting
      PATCH
    • Get Advanced DDOS setting
      GET
    • Get Always Online setting
      GET
    • Change Always Online setting
      PATCH
    • Get Always Use HTTPS setting
      GET
    • Change Always Use HTTPS setting
      PATCH
    • Get Automatic HTTPS Rewrites setting
      GET
    • Change Automatic HTTPS Rewrites setting
      PATCH
    • Get Automatic Platform Optimization for WordPress settings
      GET
    • Change Automatic Platform Optimization for WordPress settings
      PATCH
    • Get Brotli setting
      GET
    • Change Brotli setting
      PATCH
    • Get Browser Cache TTL setting
      GET
    • Change Browser Cache TTL setting
      PATCH
    • Get Browser Check setting
      GET
    • Change Browser Check setting
      PATCH
    • Get Cache Level setting
      GET
    • Change Cache Level setting
      PATCH
    • Get Challenge TTL setting
      GET
    • Change Challenge TTL setting
      PATCH
    • Get ciphers setting
      GET
    • Change ciphers setting
      PATCH
    • Get Development Mode setting
      GET
    • Change Development Mode setting
      PATCH
    • Get Early Hints setting
      GET
    • Change Early Hints setting
      PATCH
    • Get Email Obfuscation setting
      GET
    • Change Email Obfuscation setting
      PATCH
    • Get HTTP/2 Edge Prioritization setting
      GET
    • Change HTTP/2 Edge Prioritization setting
      PATCH
    • Get Hotlink Protection setting
      GET
    • Change Hotlink Protection setting
      PATCH
    • Get HTTP2 setting
      GET
    • Change HTTP2 setting
      PATCH
    • Get HTTP3 setting
      GET
    • Change HTTP3 setting
      PATCH
    • Get Image Resizing setting
      GET
    • Change Image Resizing setting
      PATCH
    • Get IP Geolocation setting
      GET
    • Change IP Geolocation setting
      PATCH
    • Get IPv6 setting
      GET
    • Change IPv6 setting
      PATCH
    • Get Minimum TLS Version setting
      GET
    • Change Minimum TLS Version setting
      PATCH
    • Get Minify setting
      GET
    • Change Minify setting
      PATCH
    • Get Mirage setting
      GET
    • Change Mirage setting
      PATCH
    • Get Mobile Redirect setting
      GET
    • Change Mobile Redirect setting
      PATCH
    • Get Network Error Logging setting
      GET
    • Change Network Error Logging setting
      PATCH
    • Get Opportunistic Encryption setting
      GET
    • Change Opportunistic Encryption setting
      PATCH
    • Get Opportunistic Onion setting
      GET
    • Change Opportunistic Onion setting
      PATCH
    • Get Orange to Orange (O2O)
      GET
    • Change Orange to Orange (O2O)
      PATCH
    • Get Enable Error Pages On setting
      GET
    • Change Enable Error Pages On setting
      PATCH
    • Get Origin Max HTTP version setting
      GET
    • Change Origin Max HTTP version setting
      PATCH
    • Get Polish setting
      GET
    • Change Polish setting
      PATCH
    • Get prefetch preload setting
      GET
    • Change prefetch preload setting
      PATCH
    • Get Privacy Pass setting
      GET
    • Change Privacy Pass setting
      PATCH
    • Get Proxy Read Timeout setting
      GET
    • Change Proxy Read Timeout setting
      PATCH
    • Get Pseudo IPv4 setting
      GET
    • Change Pseudo IPv4 setting
      PATCH
    • Get Response Buffering setting
      GET
    • Change Response Buffering setting
      PATCH
    • Get Rocket Loader setting
      GET
    • Change Rocket Loader setting
      PATCH
    • Get Security Header (HSTS) setting
      GET
    • Change Security Header (HSTS) setting
      PATCH
    • Get Security Level setting
      GET
    • Change Security Level setting
      PATCH
    • Get Server Side Exclude setting
      GET
    • Change Server Side Exclude setting
      PATCH
    • Get Enable Query String Sort setting
      GET
    • Change Enable Query String Sort setting
      PATCH
    • Get SSL setting
      GET
    • Change SSL setting
      PATCH
    • Get SSL/TLS Recommender enrollment
      GET
    • Change SSL/TLS Recommender enrollment
      PATCH
    • Get TLS 1.3 setting enabled for a zone
      GET
    • Change TLS 1.3 setting
      PATCH
    • Get TLS Client Auth setting
      GET
    • Change TLS Client Auth setting
      PATCH
    • Get True Client IP setting
      GET
    • Change True Client IP setting
      PATCH
    • Get Web Application Firewall (WAF) setting
      GET
    • Change Web Application Firewall (WAF) setting
      PATCH
    • Get WebP setting
      GET
    • Change WebP setting
      PATCH
    • Get WebSockets setting
      GET
    • Change WebSockets setting
      PATCH
  • Zone Subscription
    • Zone Subscription Details
    • Create Zone Subscription
    • Update Zone Subscription
  • Zone-Level Access applications
    • List Access Applications
    • Add a Bookmark application
    • Delete an Access application
    • Get an Access application
    • Update a Bookmark application
    • Revoke service tokens
    • Test Access policies
  • Zone-Level Access groups
    • List Access groups
    • Create an Access group
    • Delete an Access group
    • Get an Access group
    • Update an Access group
  • Zone-Level Access identity providers
    • List Access identity providers
    • Add an Access identity provider
    • Delete an Access identity provider
    • Get an Access identity provider
    • Update an Access identity provider
  • Zone-Level Access mTLS authentication
    • List mTLS certificates
    • Add an mTLS certificate
    • Delete an mTLS certificate
    • Get an mTLS certificate
    • Update an mTLS certificate
  • Zone-Level Access policies
    • Delete an Access policy
    • Get an Access policy
    • Update an Access policy
    • List Access policies
    • Create an Access policy
  • Zone-Level Access service tokens
    • List service tokens
    • Create a service token
    • Delete a service token
    • Update a service token
  • Zone-Level Access short-lived certificate CAs
    • List short-lived certificate CAs
    • Delete a short-lived certificate CA
    • Get a short-lived certificate CA
    • Create a short-lived certificate CA
  • Zone-Level Authenticated Origin Pulls
    • List Certificates
    • Upload Certificate
    • Get Enablement Setting for Zone
    • Set Enablement for Zone
    • Delete Certificate
    • Get Certificate Details
  • Zone-Level Zero Trust organization
    • Get your Zero Trust organization
    • Create your Zero Trust organization
    • Update your Zero Trust organization
    • Revoke all Access tokens for a user
  • mTLS Certificate Management
    • List mTLS certificates
    • Upload mTLS certificate
    • Delete mTLS certificate
    • Get mTLS certificate
    • List mTLS certificate associations
  1. Zone Settings

Edit zone settings info

PATCH
https://api.cloudflare.com/client/v4/zones/{zone_identifier}/settings
Zone Settings
Last modified:2022-12-16 13:48:36
Edit settings for a zone.

Request

Path Params
zone_identifier
string 
required
Body Params application/json
items
array[null (setting) {56}] 
required
One or more zone setting objects. Must contain an ID and a value.
>= 1 items
Example:
[{"id":"always_online","value":"on"},{"id":"browser_cache_ttl","value":18000},{"id":"ip_geolocation","value":"off"}]
object 
Always Online Mode
optional
When enabled, Cloudflare serves limited copies of web pages available from the Internet Archive's Wayback Machine if your server is offline. Refer to Always Online for more information.
object 
Advanced DDoS Protection
optional
Advanced protection from Distributed Denial of Service (DDoS) attacks on your website. This is an uneditable value that is 'on' in the case of Business and Enterprise zones.
object 
Brotli Compression
optional
When the client requesting an asset supports the Brotli compression algorithm, Cloudflare will serve a Brotli compressed version of the asset.
object 
Browser Cache TTL
optional
Browser Cache TTL (in seconds) specifies how long Cloudflare-cached resources will remain on your visitors' computers. Cloudflare will honor any larger times specified by your server. (https://support.cloudflare.com/hc/en-us/articles/200168276).
object 
Browser Check
optional
Browser Integrity Check is similar to Bad Behavior and looks for common HTTP headers abused most commonly by spammers and denies access to your page. It will also challenge visitors that do not have a user agent or a non standard user agent (also commonly used by abuse bots, crawlers or visitors). (https://support.cloudflare.com/hc/en-us/articles/200170086).
object 
Cloudflare CNAME Flattening
optional
Whether or not cname flattening is on.
object 
Cloudflare Cache Level
optional
Cache Level functions based off the setting level. The basic setting will cache most static resources (i.e., css, images, and JavaScript). The simplified setting will ignore the query string when delivering a cached resource. The aggressive setting will cache all static resources, including ones with a query string. (https://support.cloudflare.com/hc/en-us/articles/200168256).
object 
Challenge Page TTL
optional
Specify how long a visitor is allowed access to your site after successfully completing a challenge (such as a CAPTCHA). After the TTL has expired the visitor will have to complete a new challenge. We recommend a 15 - 45 minute setting and will attempt to honor any setting above 45 minutes. (https://support.cloudflare.com/hc/en-us/articles/200170136).
object 
Development Mode
optional
Development Mode temporarily allows you to enter development mode for your websites if you need to make changes to your site. This will bypass Cloudflare's accelerated cache and slow down your site, but is useful if you are making changes to cacheable content (like images, css, or JavaScript) and would like to see those changes right away. Once entered, development mode will last for 3 hours and then automatically toggle off.
object 
Early Hints
optional
When enabled, Cloudflare will attempt to speed up overall page loads by serving 103 responses with Link headers from the final response. Refer to Early Hints for more information.
object 
Edge Cache TTL
optional
Time (in seconds) that a resource will be ensured to remain on Cloudflare's cache servers.
object 
Error Pages On
optional
Cloudflare will proxy customer error pages on any 502,504 errors on origin server instead of showing a default Cloudflare error page. This does not apply to 522 errors and is limited to Enterprise Zones.
Default:
off
object 
Get String Sort
optional
Cloudflare will treat files with the same query strings as the same file in cache, regardless of the order of the query strings. This is limited to Enterprise Zones.
Default:
off
object 
Email Obfuscation
optional
Encrypt email adresses on your web page from bots, while keeping them visible to humans. (https://support.cloudflare.com/hc/en-us/articles/200170016).
object 
Hotlink Protection
optional
When enabled, the Hotlink Protection option ensures that other sites cannot suck up your bandwidth by building pages that use images hosted on your site. Anytime a request for an image on your site hits Cloudflare, we check to ensure that it's not another site requesting them. People will still be able to download and view images from your page, but other sites won't be able to steal them for use on their own pages. (https://support.cloudflare.com/hc/en-us/articles/200170026).
object 
IP Geolocation
optional
Enable IP Geolocation to have Cloudflare geolocate visitors to your website and pass the country code to you. (https://support.cloudflare.com/hc/en-us/articles/200168236).
object 
IPv6
optional
Enable IPv6 on all subdomains that are Cloudflare enabled. (https://support.cloudflare.com/hc/en-us/articles/200168586).
object 
WebSockets
optional
WebSockets are open connections sustained between the client and the origin server. Inside a WebSockets connection, the client and the origin can pass data back and forth without having to reestablish sessions. This makes exchanging data within a WebSockets connection fast. WebSockets are often used for real-time applications such as live chat and gaming. For more information refer to Can I use Cloudflare with Websockets.
object 
Toggle SHA1 support
optional
Allow SHA1 support.
object 
TLS1.2 only
optional
Only allows TLS1.2.
object 
Auto-Minify Assets
optional
Automatically minify certain assets for your website. Refer to Using Cloudflare Auto Minify for more information.
object 
Max Upload
optional
Maximum size of an allowable upload.
object 
Mobile Redirect
optional
Automatically redirect visitors on mobile devices to a mobile-optimized subdomain. Refer to Understanding Cloudflare Mobile Redirect for more information.
object 
Mirage Image Optimization
optional
Automatically optimize image loading for website visitors on mobile devices. Refer to our blog post for more information.
object 
Network Error Logging
optional
Enable Network Error Logging reporting on your zone. (Beta)
object 
Polish Image Optimization
optional
Removes metadata and compresses your images for faster page load times. Basic (Lossless): Reduce the size of PNG, JPEG, and GIF files - no impact on visual quality. Basic + JPEG (Lossy): Further reduce the size of JPEG files for faster image loading. Larger JPEGs are converted to progressive images, loading a lower-resolution image first and ending in a higher-resolution version. Not recommended for hi-res photography sites.
object 
Polish WebP Conversion
optional
When the client requesting the image supports the WebP image codec, and WebP offers a performance advantage over the original image format, Cloudflare will serve a WebP version of the original image.
object 
Prefetch preload
optional
Cloudflare will prefetch any URLs that are included in the response headers. This is limited to Enterprise Zones.
Default:
off
object 
Privacy Pass
optional
Privacy Pass is a browser extension developed by the Privacy Pass Team to improve the browsing experience for your visitors. Enabling Privacy Pass will reduce the number of CAPTCHAs shown to your visitors. (https://support.cloudflare.com/hc/en-us/articles/115001992652-Privacy-Pass).
object 
Response Buffering
optional
Enables or disables buffering of responses from the proxied server. Cloudflare may buffer the whole payload to deliver it at once to the client versus allowing it to be delivered in chunks. By default, the proxied server streams directly and is not buffered by Cloudflare. This is limited to Enterprise Zones.
Default:
off
object 
Rocket Loader
optional
Rocket Loader is a general-purpose asynchronous JavaScript optimisation that prioritises rendering your content while loading your site's Javascript asynchronously. Turning on Rocket Loader will immediately improve a web page's rendering time sometimes measured as Time to First Paint (TTFP), and also the window.onload time (assuming there is JavaScript on the page). This can have a positive impact on your Google search ranking. When turned on, Rocket Loader will automatically defer the loading of all Javascript referenced in your HTML, with no configuration required. Refer to Understanding Rocket Loader for more information.
object 
Security Header
optional
Cloudflare security header for a zone.
object 
Security Level
optional
Choose the appropriate security profile for your website, which will automatically adjust each of the security settings. If you choose to customize an individual security setting, the profile will become Custom. (https://support.cloudflare.com/hc/en-us/articles/200170056).
object 
Server Side Exclude
optional
If there is sensitive content on your website that you want visible to real visitors, but that you want to hide from suspicious visitors, all you have to do is wrap the content with Cloudflare SSE tags. Wrap any content that you want to be excluded from suspicious visitors in the following SSE tags: . For example: Bad visitors won't see my phone number, 555-555-5555 . Note: SSE only will work with HTML. If you have HTML minification enabled, you won't see the SSE tags in your HTML source when it's served through Cloudflare. SSE will still function in this case, as Cloudflare's HTML minification and SSE functionality occur on-the-fly as the resource moves through our network to the visitor's computer. (https://support.cloudflare.com/hc/en-us/articles/200170036).
object 
SSL
optional
SSL encrypts your visitor's connection and safeguards credit card numbers and other personal data to and from your website. SSL can take up to 5 minutes to fully activate. Requires Cloudflare active on your root domain or www domain. Off: no SSL between the visitor and Cloudflare, and no SSL between Cloudflare and your web server (all HTTP traffic). Flexible: SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, but no SSL between Cloudflare and your web server. You don't need to have an SSL cert on your web server, but your vistors will still see the site as being HTTPS enabled. Full: SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, and SSL between Cloudflare and your web server. You'll need to have your own SSL cert or self-signed cert at the very least. Full (Strict): SSL between the visitor and Cloudflare -- visitor sees HTTPS on your site, and SSL between Cloudflare and your web server. You'll need to have a valid SSL certificate installed on your web server. This certificate must be signed by a certificate authority, have an expiration date in the future, and respond for the request domain name (hostname). (https://support.cloudflare.com/hc/en-us/articles/200170416).
object 
SSL/TLS Recommender
optional
Enrollment in the SSL/TLS Recommender service which tries to detect and recommend (by sending periodic emails) the most secure SSL/TLS setting your origin servers support.
object 
TLS Client Authentication
optional
TLS Client Auth requires Cloudflare to connect to your origin server using a client certificate (Enterprise Only).
object 
True Client IP Header
optional
Allows customer to continue to use True Client IP (Akamai feature) in the headers we send to the origin. This is limited to Enterprise Zones.
Default:
off
object 
Proxy Read Timeout
optional
Maximum time between two read operations from origin.
object 
Web Application Firewall
optional
The WAF examines HTTP requests to your website. It inspects both GET and POST requests and applies rules to help filter out illegitimate traffic from legitimate website visitors. The Cloudflare WAF inspects website addresses or URLs to detect anything out of the ordinary. If the Cloudflare WAF determines suspicious user behavior, then the WAF will 'challenge' the web visitor with a page that asks them to submit a CAPTCHA successfully to continue their action. If the challenge is failed, the action will be stopped. What this means is that Cloudflare's WAF will block any traffic identified as illegitimate before it reaches your origin web server. (https://support.cloudflare.com/hc/en-us/articles/200172016).
object 
Zone Minimum TLS Version value
optional
Only accepts HTTPS requests that use at least the TLS protocol version specified. For example, if TLS 1.1 is selected, TLS 1.0 connections will be rejected, while 1.1, 1.2, and 1.3 (if enabled) will be permitted.
Default:
1.0
object 
Zone ciphers allowed for TLS termination
optional
An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.
object 
Enable TLS 1.3 value for a zone
optional
Enables Crypto TLS 1.3 feature for a zone.
Default:
off
object 
Enable Opportunistic Encryption for a zone
optional
Enables the Opportunistic Encryption feature for a zone.
object 
Zone Enable Automatic HTTPS Rewrites
optional
Enable the Automatic HTTPS Rewrites feature for this zone.
Default:
off
object 
HTTP2 Value
optional
HTTP2 enabled for this zone.
object 
HTTP3 Value
optional
HTTP3 enabled for this zone.
object 
Origin Max HTTP version
optional
The highest HTTP version Cloudflare will attempt to use with your origin. This setting allows Cloudflare to make HTTP/2 requests to your origin. (Refer to Enable HTTP/2 to Origin, for more information.).
object 
0-RTT Value
optional
0-RTT session resumption enabled for this zone.
object 
Pseudo IPv4 Value
optional
The value set for the Pseudo IPv4 setting.
object 
Zone Enable Always Use HTTPS
optional
Reply to all requests for URLs that use "http" with a 301 redirect to the equivalent "https" URL. If you only want to redirect for a subset of requests, consider creating an "Always use HTTPS" page rule.
Default:
off
object 
Zone Enable Onion Routing
optional
Add an Alt-Svc header to all legitimate requests from Tor, allowing the connection to use our onion services instead of exit nodes.
Default:
off
object 
Orange to Orange
optional
Orange to Orange (O2O) allows zones on Cloudflare to CNAME to other zones also on Cloudflare.
object 
Image Resizing
optional
Image Resizing provides on-demand resizing, conversion and optimisation for images served through Cloudflare's network. Refer to the Image Resizing documentation for more information.
object 
HTTP/2 Edge Prioritization
optional
HTTP/2 Edge Prioritization optimises the delivery of resources served through HTTP/2 to improve page load performance. It also supports fine control of content delivery when used in conjunction with Workers.
object 
Automatic Platform Optimization for WordPress
optional
Automatic Platform Optimization for WordPress serves your WordPress site from Cloudflare's edge network and caches third-party fonts.
Example
{
  "items": [
    {
      "id": "always_online",
      "value": "on"
    },
    {
      "id": "browser_cache_ttl",
      "value": 18000
    },
    {
      "id": "ip_geolocation",
      "value": "off"
    }
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.cloudflare.com/client/v4/zones//settings' \
--header 'Content-Type: application/json' \
--data-raw '{
    "items": [
        {
            "id": "always_online",
            "value": "on"
        },
        {
            "id": "browser_cache_ttl",
            "value": 18000
        },
        {
            "id": "ip_geolocation",
            "value": "off"
        }
    ]
}'

Responses

🟢200Edit zone settings info response
application/json
Body
allOf {2} 
optional
object (api-response-collection) 
optional
errors
array [object {2}] 
messages
required
Example:
[]
messages
array [object {2}] 
messages
required
Example:
[]
result
required
success
enum<boolean> 
required
Whether the API call was successful
Allowed value:
true
Example:
true
result_info
object 
result_info
optional
object 
optional
result
optional
Example
{
  "errors": [],
  "messages": [],
  "result": [
    null
  ],
  "success": true,
  "result_info": {
    "count": 1,
    "page": 1,
    "per_page": 20,
    "total_count": 2000
  }
}
🟢200Edit zone settings info response failure
Previous
Get all Zone settings
Next
Get 0-RTT session resumption setting
Built with