patch https://api.fastpix.io/v1/on-demand//playback-ids//domains
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:
- Make a PATCH request to this endpoint with your desired domain access configuration.
- Set a default policy (
allow
ordeny
) and specify domain names in theallow
ordeny
lists. - Commonly used to restrict video playback to your own website or approved client domains.
Example:
A streaming service may allow playback only from example.com
and deny all others by setting:
"defaultPolicy": "deny"
and "allow": ["example.com"]
.