Authorization: Bearer ********************
{
"video_access_rules": {
"geo_country": {
"action": "allow",
"enabled": false,
"countries": [
"BD",
"IN"
]
},
"geo_ip": {
"action": "allow",
"enabled": true,
"ips": [
"127.0.0.1"
]
},
"domain_referrer": {
"action": "allow",
"enabled": true,
"domains": [
"sohel.pro"
]
},
"token": {
"enabled": true,
"secret": "ceasfslfslfslfjslfjslfjlsfjlsfjslfjslfjslflsfjsa"
}
},
"livestream_access_rules": {
"geo_country": {
"action": "allow",
"enabled": true,
"countries": [
"BD",
"IN"
]
},
"geo_ip": {
"action": "allow",
"enabled": true,
"ips": [
"127.0.0.1"
]
},
"domain_referrer": {
"action": "allow",
"enabled": true,
"domains": [
"sohel.pro"
]
},
"token": {
"enabled": true,
"secret": "ceasfslfslfslfjslfjslfjlsfjlsfjslfjslfjslflsfjsa"
}
}
}
curl --location --request PUT 'https://apistream.gotipath.com/v1/libraries/34f4dcc3-a5f0-48dd-8c62-b467929d2ec6/access-controls' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
"video_access_rules": {
"geo_country": {
"action": "allow",
"enabled": false,
"countries": [
"BD",
"IN"
]
},
"geo_ip": {
"action": "allow",
"enabled": true,
"ips": [
"127.0.0.1"
]
},
"domain_referrer": {
"action": "allow",
"enabled": true,
"domains": [
"sohel.pro"
]
},
"token": {
"enabled": true,
"secret": "ceasfslfslfslfjslfjslfjlsfjlsfjslfjslfjslflsfjsa"
}
},
"livestream_access_rules": {
"geo_country": {
"action": "allow",
"enabled": true,
"countries": [
"BD",
"IN"
]
},
"geo_ip": {
"action": "allow",
"enabled": true,
"ips": [
"127.0.0.1"
]
},
"domain_referrer": {
"action": "allow",
"enabled": true,
"domains": [
"sohel.pro"
]
},
"token": {
"enabled": true,
"secret": "ceasfslfslfslfjslfjslfjlsfjlsfjslfjslfjslflsfjsa"
}
}
}'
{}