Authorization: Bearer ********************{
"name": "Videso m3u8",
"match_type": "regex",
"match": "/",
"enabled": true,
"country": {
"action": "allow", // allow or deny
"values": [
"BD",
"IN"
],
"enabled": true
},
"referer": {
"action": "allow",
"values": [
"gotipath.com"
],
"enabled": true
},
"ip": {
"action": "allow",
"values": [
"192.168.1.100/32"
],
"enabled": true
},
"token": {
"action": "allow",
"value": "kI8lqvrWbhTZDLrfMJe9jZkh3fiSChgUROeeR6Aq1TX9iZ58cKGTM044yV2Veg4G",
"enabled": true
}
}curl --location --request POST 'https://apistream.gotipath.com/v1/distributions/0fdcdf0b-7676-44a8-ac6a-e400771ea773/access-rules' \
--header 'X-Auth-ClientId: ebe8bac0-eaef-4548-8b59-96c9ec38a22b' \
--header 'X-Auth-LibraryId: 89898172-d32b-49f8-a94a-bdf0c6ca1bd9' \
--header 'X-Auth-ApiKey: pEBPYVUNMbP7uDsb0W2h3oTjpEqr32fFh/3TNUhvFcJt7/J/hyV+5LctVWONgzaw+w+PpQ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Videso m3u8",
"match_type": "regex",
"match": "/",
"enabled": true,
"country": {
"action": "allow", // allow or deny
"values": [
"BD",
"IN"
],
"enabled": true
},
"referer": {
"action": "allow",
"values": [
"gotipath.com"
],
"enabled": true
},
"ip": {
"action": "allow",
"values": [
"192.168.1.100/32"
],
"enabled": true
},
"token": {
"action": "allow",
"value": "kI8lqvrWbhTZDLrfMJe9jZkh3fiSChgUROeeR6Aq1TX9iZ58cKGTM044yV2Veg4G",
"enabled": true
}
}'{}