curl --location --request PUT 'https://api-staging.tenbyte.io/v1/distributions/06d47d97-9189-436f-9ad3-72b404935d15/access-rules/ff47b1fb-10ba-4722-ae6c-b83e61f9c0df' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"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"
}
}
}'