{
"allow_mode_switch": true,
"allow_updates": true,
"allowed_to_leave": true,
"auto_connect": 0,
"captive_portal": 180,
"description": "Policy for test teams.",
"disable_auto_fallback": true,
"enabled": true,
"match": "user.identity == \"test@cloudflare.com\"",
"name": "Allow Developers",
"precedence": 100,
"service_mode_v2": {
"mode": "proxy",
"port": 3000
},
"support_url": "https://1.1.1.1/help",
"switch_locked": true
}
curl --location --request PATCH 'https://api.cloudflare.com/client/v4/accounts//devices/policy/' \
--header 'Content-Type: application/json' \
--data-raw '{
"allow_mode_switch": true,
"allow_updates": true,
"allowed_to_leave": true,
"auto_connect": 0,
"captive_portal": 180,
"description": "Policy for test teams.",
"disable_auto_fallback": true,
"enabled": true,
"match": "user.identity == \"test@cloudflare.com\"",
"name": "Allow Developers",
"precedence": 100,
"service_mode_v2": {
"mode": "proxy",
"port": 3000
},
"support_url": "https://1.1.1.1/help",
"switch_locked": true
}'
{
"errors": [],
"messages": [],
"result": {
"0": null,
"allow_mode_switch": true,
"allow_updates": true,
"allowed_to_leave": true,
"auto_connect": 0,
"captive_portal": 180,
"default": false,
"description": "Policy for test teams.",
"disable_auto_fallback": true,
"enabled": true,
"exclude": [
{
"address": "192.0.2.0/24",
"description": "Exclude testing domains from the tunnel",
"host": "*.example.com"
}
],
"fallback_domains": [
{
"description": "Domain bypass for local development",
"dns_server": [
null
],
"suffix": "example.com"
}
],
"gateway_unique_id": "699d98642c564d2e855e9661899b7252",
"include": [
{
"address": "192.0.2.0/24",
"description": "Include testing domains from the tunnel",
"host": "*.example.com"
}
],
"match": "user.identity == \"test@cloudflare.com\"",
"name": "Allow Developers",
"policy_id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"precedence": 100,
"service_mode_v2": {
"mode": "proxy",
"port": 3000
},
"support_url": "https://1.1.1.1/help",
"switch_locked": true
},
"success": true,
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}