Skip to Content
Update an asset track
patch

Updates the details of an existing Asset Track with the provided Asset ID and Track ID.

Request body params
language_code
string

The language code of this track. The value must be a valid BCP 47 specification compliant value. For example, en for English or en-US for the US version of English.

name
string

The name of the track containing a human-readable description. This value must be unique within each group of text or audio track types. The HLS manifest will associate the text or audio track with this value. For example, set the value to "English" for subtitles text track with language_code as en-US. If this parameter is not included, Mux will auto-populate a value based on the language_code value.

closed_captions
boolean

Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH).

passthrough
string

Arbitrary user-supplied metadata set for the track either when creating the asset or track.

Request path & query params
ASSET_ID
string

The asset ID.

TRACK_ID
string

The ID of the track for an asset.

patch
200
/video/v1/assets/{ASSET_ID}/tracks/{TRACK_ID}
Request
(application/json)
{
  "language_code": "en-US",
  "name": "English"
}
Response
(application/json)
{
  "data": {
    "type": "text",
    "text_type": "subtitles",
    "status": "ready",
    "passthrough": "passthrough value",
    "name": "English",
    "language_code": "en-US",
    "id": "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw",
    "closed_captions": true
  }
}