Edit additional audio tracks on a video

Edits additional audio tracks on a video. Editing the default status of an audio track to `true` will mark all other audio tracks on the video default status to `false`.

/accounts/{account_identifier}/stream/{identifier}/audio/{audio_identifier}

patch

Stream Add Audio Tracks

edit-audio-tracks

Debug "planAvailability"

null

Debug "tokenPermissions"

null

Debug "parameters"

[
  {
    "in": "path",
    "name": "account_identifier",
    "required": true,
    "schema": {
      "description": "The account identifier tag.",
      "example": "023e105f4ecef8ad9ca31a8372d0c353",
      "maxLength": 32,
      "type": "string"
    }
  },
  {
    "in": "path",
    "name": "identifier",
    "required": true,
    "schema": {
      "description": "A Cloudflare-generated unique identifier for a media item.",
      "example": "ea95132c15732412d22c1476fa83f27a",
      "maxLength": 32,
      "type": "string"
    }
  },
  {
    "in": "path",
    "name": "audio_identifier",
    "required": true,
    "schema": {
      "description": "The unique identifier for an additional audio track.",
      "example": "ea95132c15732412d22c1476fa83f27a",
      "maxLength": 32,
      "type": "string"
    }
  }
]

Debug "requestBody"

{
  "content": {
    "application/json": {
      "schema": {
        "properties": {
          "default": {
            "default": false,
            "description": "Denotes whether the audio track will be played by default in a player.",
            "type": "boolean"
          },
          "label": {
            "description": "A string to uniquely identify the track amongst other audio track labels for the specified video.",
            "example": "director commentary",
            "type": "string"
          }
        },
        "type": "object"
      }
    }
  },
  "required": true
}

Debug "responses"

{
  "200": {
    "content": {
      "application/json": {
        "schema": {
          "allOf": [
            {
              "properties": {
                "errors": {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                },
                "messages": {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                },
                "result": {
                  "anyOf": [
                    {
                      "type": "object"
                    },
                    {
                      "items": {},
                      "type": "array"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "success": {
                  "description": "Whether the API call was successful",
                  "enum": [
                    true
                  ],
                  "example": true,
                  "type": "boolean"
                }
              },
              "required": [
                "success",
                "errors",
                "messages",
                "result"
              ],
              "type": "object"
            },
            {
              "properties": {
                "result": {
                  "properties": {
                    "default": {
                      "default": false,
                      "description": "Denotes whether the audio track will be played by default in a player.",
                      "type": "boolean"
                    },
                    "label": {
                      "description": "A string to uniquely identify the track amongst other audio track labels for the specified video.",
                      "example": "director commentary",
                      "type": "string"
                    },
                    "status": {
                      "description": "Specifies the processing status of the video.",
                      "enum": [
                        "queued",
                        "ready",
                        "error"
                      ],
                      "type": "string"
                    },
                    "uid": {
                      "description": "A Cloudflare-generated unique identifier for a media item.",
                      "example": "ea95132c15732412d22c1476fa83f27a",
                      "maxLength": 32,
                      "type": "string"
                    }
                  }
                }
              }
            }
          ]
        }
      }
    },
    "description": "Edits additional audio tracks on a video"
  },
  "4XX": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "errors": {
              "allOf": [
                {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                }
              ],
              "example": [
                {
                  "code": 7003,
                  "message": "No route for the URI"
                }
              ],
              "minLength": 1
            },
            "messages": {
              "allOf": [
                {
                  "example": [],
                  "items": {
                    "properties": {
                      "code": {
                        "minimum": 1000,
                        "type": "integer"
                      },
                      "message": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "type": "object",
                    "uniqueItems": true
                  },
                  "type": "array"
                }
              ],
              "example": []
            },
            "result": {
              "enum": [
                null
              ],
              "nullable": true,
              "type": "object"
            },
            "success": {
              "description": "Whether the API call was successful",
              "enum": [
                false
              ],
              "example": false,
              "type": "boolean"
            }
          },
          "required": [
            "success",
            "errors",
            "messages",
            "result"
          ],
          "type": "object"
        }
      }
    },
    "description": "Edits additional audio tracks on a video response failure"
  }
}

Debug "security"

[
  {
    "api_email": [],
    "api_key": []
  }
]