Update a media by ID

This endpoint allows you to update specific parameters of an existing media file. You can modify the key-value pairs of the metadata that were provided in the payload during the creation of media from a URL or when uploading the media directly from device. #### How it works 1. Make a PATCH request to this endpoint. Replace `<mediaId>` with the unique ID (`uploadId` or `id`) of the media you received after uploading to FastPix 2. Include the updated parameters in the request body. 3. The response returns the updated media data, confirming the changes. 4. Monitor the <a href="https://fastpix.com/docs/webhooks/media-events#videomediaupdated">video.media.updated</a> webhook event to track the update status in your system. #### Example If a user uploads a video and later needs to change the title, add a new description, or update tags, you can use this endpoint to update the media metadata without re-uploading the entire video.

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.
metadatamap from strings to stringsOptional
titlestringOptional<=255 charactersDefaults to My Video Title
Title of the media file.
creatorIdstringOptional<=255 charactersDefaults to 8fa85f64-5717-4562-b3fc-2c963f66afa6
The unique identifier of the user who created this media.

Response

Media details updated successfully
successboolean
Demonstrates whether the request is successful or not.
dataobject