For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • ACTIVATE ACCOUNT
    • Create account
  • PRODUCT OS API
    • Overview
  • ERROR CODES
    • Error codes
  • VIDEO ON DEMAND API
    • Overview
      • GETGet list of all media
      • GETGet all clips of a live stream
      • GETGet a media by ID
      • DELDelete a media by ID
      • PATCHUpdate a media by ID
      • POSTAdd audio / subtitle track
      • PUTCancel ongoing upload
      • DELDelete audio / subtitle track
      • PATCHUpdate audio / subtitle track
      • POSTGenerate track subtitle
      • GETGet the summary of a video
      • PATCHUpdate the source access of a media by ID
      • PATCHUpdate the mp4Support of a media by ID
      • GETGet info of media inputs
      • GETGet all unused upload URLs
      • GETGet all clips of a media
  • LIVE STREAM API
    • Overview
  • VIDEO DATA API
    • Overview
LogoLogo
StatusSupportDiscussionsLog inSign Up
VIDEO ON DEMAND APIManage videos

Update a media by ID

PATCH
https://api.fastpix.com/v1/on-demand/:mediaId
PATCH
/v1/on-demand/:mediaId
$curl -X PATCH https://api.fastpix.com/v1/on-demand/4fa85f64-5717-4562-b3fc-2c963f66afa6 \
> -H "Content-Type: application/json" \
> -u "<username>:<password>" \
> -d '{}'
200Updated
1{
2 "success": true,
3 "data": {
4 "thumbnail": "https://images.fastpix.com/837f028b-dcaf-4c23-b368-3748641f74ac/thumbnail.png",
5 "id": "cfeec1a3-6cbd-40df-a425-2ed7f8f72ced",
6 "workspaceId": "6dc2b4e0-0615-42fd-a580-1f4aad932dfe",
7 "metadata": {
8 "user": "fastpix_admin"
9 },
10 "mediaQuality": "standard",
11 "creatorId": "fastpix-123",
12 "title": "Test-Video-Title",
13 "maxResolution": "1080p",
14 "sourceResolution": "1080p",
15 "status": "Ready",
16 "sourceAccess": false,
17 "playbackIds": [
18 {
19 "id": "837f028b-dcaf-4c23-b368-3748641f74ac",
20 "accessPolicy": "public",
21 "accessRestrictions": {
22 "domains": {
23 "defaultPolicy": "allow",
24 "allow": [],
25 "deny": []
26 },
27 "userAgents": {
28 "defaultPolicy": "allow",
29 "allow": [],
30 "deny": []
31 }
32 }
33 }
34 ],
35 "tracks": [
36 {
37 "id": "f301a2a1-b40d-40fa-b419-4d0cd92a62f8",
38 "type": "video",
39 "width": 1920,
40 "height": 1080,
41 "frameRate": "30/1",
42 "status": "available"
43 }
44 ],
45 "generatedSubtitles": [],
46 "isAudioOnly": false,
47 "subtitleAvailable": true,
48 "duration": "00:00:10",
49 "aspectRatio": "16:9",
50 "createdAt": "2025-01-09T06:44:44.617138Z",
51 "updatedAt": "2025-01-09T06:44:53.742648Z"
52 }
53}
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://docs.fastpix.io/docs/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.
Was this page helpful?
Previous

Add audio / subtitle track

Next
Built with

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 video.media.updated 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.

  • Username: Access Token ID
  • Password: Secret Key

Activate your FastPix account to generate your API credentials. See the guide here

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