Authorization: Bearer ********************
{
"name": "Videso m3u8 test",
"match_type": "regex",
"match": "./*",
"enabled": true,
"country": {
"action": "allow",
"values": [
"BD",
"IN"
],
"enabled": false
},
"referer": {
"action": "allow",
"values": [
"gotipath.com"
],
"enabled": true
},
"ip": {
"action": "allow",
"values": [
"192.168.1.100/32"
],
"enabled": true
},
"token": {
"action": "allow",
"enabled": true
}
}
curl --location --request PUT 'https://apistream.gotipath.com/v1/distributions/bb52605c-5bbc-41f4-af77-1c1bf12ec7d9/access-rules/114dd277-029e-44ad-abe6-2b6964bcc484' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Videso m3u8 test",
"match_type": "regex",
"match": "./*",
"enabled": true,
"country": {
"action": "allow",
"values": [
"BD",
"IN"
],
"enabled": false
},
"referer": {
"action": "allow",
"values": [
"gotipath.com"
],
"enabled": true
},
"ip": {
"action": "allow",
"values": [
"192.168.1.100/32"
],
"enabled": true
},
"token": {
"action": "allow",
"enabled": true
}
}'
{}