Skip to main content
PATCH
/
audio
/
{audio_id}
Update audio
curl --request PATCH \
  --url https://api.videodb.io/audio/{audio_id} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "name": "Updated Audio Name"
}
'
{
  "success": true,
  "data": {
    "id": "a-12345",
    "name": "audio.mp3",
    "collection_id": "default",
    "length": 60,
    "size": 524288,
    "created_at": "2023-11-07T05:31:56Z"
  }
}
Update metadata for a specific audio file, including its name and description.
  • Audio IDs start with the prefix a-
  • Only provided fields are updated; omitted fields remain unchanged

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

audio_id
string
required
Example:

"a-12345"

Body

application/json
name
string
Example:

"Updated Audio Name"

Response

200 - application/json

Audio updated

success
boolean
Example:

true

data
object