Skip to Content
Update the User Agent Restriction
put

Allows you to modify how Mux validates playback requests with different user agents. Please see Using User-Agent HTTP header for validation for more details on this feature.

Request body params
allow_no_user_agent
boolean
(default: true)

Whether or not to allow views without a User-Agent HTTP request header.

allow_high_risk_user_agent
boolean
(default: true)

Whether or not to allow high risk user agents. The high risk user agents are defined by Mux.

Request path & query params
PLAYBACK_RESTRICTION_ID
string

ID of the Playback Restriction.

put
200
/video/v1/playback-restrictions/{PLAYBACK_RESTRICTION_ID}/user_agent
Request
(application/json)
{
  "allow_no_user_agent": false,
  "allow_high_risk_user_agent": false
}
Response
(application/json)
{
  "data": {
    "id": "9dbEg8o00uqQzZbzJT6NXdqNA00SdnSo8O",
    "updated_at": "1607945257",
    "created_at": "1607939184",
    "referrer": {
      "allowed_domains": [
        "*.example.com"
      ],
      "allow_no_referrer": true
    },
    "user_agent": {
      "allow_no_user_agent": false,
      "allow_high_risk_user_agent": false
    }
  }
}