curl --request PUT \
--url https://api.tenbyte.io/v1/cdn/distributions/{distributionID}/access-rules/{accessRuleId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "update",
"match_type": "prefix",
"match_pattern": "/media/api/*",
"config": {
"country_access": {
"enabled": true,
"values": [
"AR",
"AF",
"IN"
],
"action": "allow"
},
"ip_access": {
"enabled": true,
"values": [
"203.0.113.0/24",
"198.51.100.0/24"
],
"action": "deny"
},
"referrer_access": {
"enabled": true,
"values": [
"mark.com",
"example.com"
],
"action": "allow"
}
}
}
'