DeleteAudio

Update time: 2024-07-29 16:59:31

Deletes the specified audio through this interface.

  • Limit of request rate per user: 300/5min
  • Applicable Products: Cloud VoD
For API authentication details, please refer to: API Authentication Overview

Request

Body Params

NameDescription
*audioIdString

id of the audio you want to delete

validateOccupyInteger

Occupancy check; 0 not check, 1 check, default check

Response

Body Params

NameDescription
codeInteger

Create the result status code. 200 indicates success

messageString

Successful operation

dataString

Return data

Error code

Error code(code)Description(message)HTTP statusSemantic
1301

User has no permission

200User has no permission
1004

The parameter is incorrect. Please ensure that all required fields are filled in

200The parameter is incorrect. Please ensure that all required fields are filled in
1000

The audio id cannot be empty

200The audio id cannot be empty
1004

The audio id does not exist

200The audio id does not exist
1004

Parameter error

200Parameter error
400

Resource occupied

200Resource occupied

Example

JSON
JSON
Request example
Copy Copy success
#!/bin/bash
username='example_username'
apiKey='example_apiKey'
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/vod/audioManage/deleteAudio" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "x-cnc-auth-method: BASIC" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
    "audioId": "9B0F7BA8BCB9D056D4C24ADDBF821D10",
    "validateOccupy": 1
}'
Response example
Copy Copy success
{
  "code": 200,
  "data": "",
  "message": "Operation succeeded"
}
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!