Update domain restrictions for a playback ID

This endpoint updates domain-level restrictions for a specific playback ID associated with a media asset. It allows you to restrict playback to specific domains or block known unauthorized domains. **How it works:** 1. Make a `PATCH` request to this endpoint with your desired domain access configuration. 2. Set a default policy (`allow` or `deny`) and specify domain names in the `allow` or `deny` lists. 3. This is commonly used to restrict video playback to your website or approved client domains. **Example:** A streaming service can allow playback only from `example.com` and deny all others by setting: `"defaultPolicy": "deny"` and `"allow": ["example.com"]`.

Authentication

AuthorizationBasic
FastPix APIs are secured with Basic Authentication. Use your Access Token ID as the username and Secret Key as the password in the Authorization header of each API request. - <b>Username:</b> Access Token ID - <b>Password:</b> Secret Key Activate your FastPix account to generate your API credentials. <a href="https://fastpix.com/docs/getting-started/activate-your-account" target="_blank">See the guide here</a>

Path parameters

mediaIdstringRequiredformat: "uuid"
playbackIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
defaultPolicyenumOptionalDefaults to allow

Specify the fallback behavior for domains that are not listed in the allow or deny lists.

Allowed values:
allowlist of stringsOptional
List of domains explicitly allowed to play the media.
denylist of stringsOptional
List of domains explicitly denied from accessing the media.

Response

Successfully updated domain restrictions
successboolean
Shows the request status. Returns true for success and false for failure.
dataobject