/video/v1/playback-restrictions/{id}/user_agent
PUT
/video/v1/playback-restrictions/{id}/user_agent
const url = 'https://example.com/video/v1/playback-restrictions/example/user_agent';const options = { method: 'PUT', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"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 PUT \ --url https://example.com/video/v1/playback-restrictions/example/user_agent \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "allow_no_user_agent": true, "allow_high_risk_user_agent": true }'Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»id
required
string
Request Bodyrequired
Sección titulada «Request Bodyrequired»Media typeapplication/json
object
allow_no_user_agent
required
boolean
allow_high_risk_user_agent
required
boolean
Example generated
{ "allow_no_user_agent": true, "allow_high_risk_user_agent": true}Responses
Sección titulada «Responses»Default Response