Update the source access of a media by ID

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 1. Make a `PATCH` request to this endpoint, replacing `{mediaId}` with the ID of the media you want to update. 2. Include the updated `sourceAccess` parameter in the request body. 3. You receive a response confirming the update to the media’s source access status. 4. Webhook events: <a href="https://fastpix.com/docs/vod-events/transform-media-events#videomediasourceready">video.media.source.ready</a>, <a href="https://fastpix.com/docs/vod-events/transform-media-events#videomediasourcedeleted">video.media.source.deleted</a>

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"
The unique identifier assigned to the media when created. The value must be a valid UUID.

Request

This endpoint expects an object.
sourceAccessbooleanRequired
The sourceAccess parameter determines whether the original media file is accessible. Set to true to enable access or false to restrict it.

Response

Media details updated successfully
successboolean
Shows the request status. Returns true for success and false for failure.
dataobject