Associate DRM Policy with an Asset

You can associate a DRM policy with one or more specific assets. If a DRM policy is not associated with an asset, the default policy is used.

Note: For more information about Backlot REST API commands, see the Backlot API Reference.

Get the Policy for an Asset

[GET]/assets/asset_id/drm_policy

Associate Policy with an Asset

[PUT]/assets/asset_id/drm_policy/drm_policy_id                           

Remove a Policy from an Asset

[DELETE]/assets/asset_id/drm_policy

Example

This example associates the 86ff97ae7c81495eacbd9a01feff0f21 policy with the IzNnllMjphu2XF3_UgPROoCi9B2rtWs asset:

[PUT]/v2/assets/asset_id/drm_policy/drm_policy_#

Backlot returns a 200 response.

Note: Try out the code samples using your account credentials in the Ooyala Scratchpad. To launch the Scratchpad, go to Ooyala API Scratchpad. For information about using the Scratchpad, see Practice Making Requests with the Scratchpad.

Was this article helpful?