/video/v1/playback-restrictions (POST)
POST
/video/v1/playback-restrictions
const url = 'https://example.com/video/v1/playback-restrictions';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"referrer":{"allowed_domains":["example"],"allow_no_referrer":true},"user_agent":{"allow_no_user_agent":true,"allow_high_risk_user_agent":true}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/video/v1/playback-restrictions \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "referrer": { "allowed_domains": [ "example" ], "allow_no_referrer": true }, "user_agent": { "allow_no_user_agent": true, "allow_high_risk_user_agent": true } }'Authorizations
Sección titulada «Authorizations»Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
Any of:
object
referrer
required
object
allowed_domains
required
Array<string>
allow_no_referrer
boolean
user_agent
object
allow_no_user_agent
boolean
allow_high_risk_user_agent
boolean
object
referrer
object
allowed_domains
required
Array<string>
allow_no_referrer
boolean
user_agent
required
object
allow_no_user_agent
boolean
allow_high_risk_user_agent
boolean
Example generated
{ "referrer": { "allowed_domains": [ "example" ], "allow_no_referrer": true }, "user_agent": { "allow_no_user_agent": true, "allow_high_risk_user_agent": true }}Responses
Sección titulada «Responses»Default Response