This endpoint allows you to update the sourceAccess
setting of an existing media file. The sourceAccess
parameter determines whether the original media file is accessible or restricted. Setting this to true
enables access to the media source, while setting it to false
restricts access.
How it works
-
Make a PATCH request to the /on-demand/{mediaId}/source-access endpoint, replacing
{mediaId}
with the ID of the media you want to update. -
Include the updated
sourceAccess
parameter in the request body. -
Receive a response confirming the update to the media's source access status.
Once the update request is made, you can also monitor the video.media.source.ready/video.media.source.deleted webhook event to notify your system about the update status.
Use case: The sourceAccess parameter allows you to control access to the original media file" is that it gives you flexibility and security in managing media content. By controlling access to the original file.