{
"geo_country": {
"action": "allow",
"countries": ["US", "UK"],
"enabled": true
},
"geo_ip": {
"action": "block",
"ips": ["192.168.1.1", "10.0.0.1"],
"enabled": true
},
"token": {
"secret": "my_secret_token",
"enabled": true
},
"domain_referrer": {
"action": "allow",
"domains": ["example.com", "example.net"],
"enabled": false
}
}
/libraries/<library_id>/access-controls
curl --location --request PUT 'https://api.vidinfra.com/libraries//access-controls' \
--header 'Content-Type: application/json' \
--data-raw '{
"geo_country": {
"action": "allow",
"countries": ["US", "UK"],
"enabled": true
},
"geo_ip": {
"action": "block",
"ips": ["192.168.1.1", "10.0.0.1"],
"enabled": true
},
"token": {
"secret": "my_secret_token",
"enabled": true
},
"domain_referrer": {
"action": "allow",
"domains": ["example.com", "example.net"],
"enabled": false
}
}'
{}