EditAudio

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

Edits the basic information that specifies a single tone frequency

  • Single user trigger frequency: 300/5min
  • Applicable Products: Cloud VoD

Request

Body Params

NameDescription
*audioIdString
Audio id to edit
audioNameString
The value is a new audio name, with a maximum of 40 Chinese characters.
publishDomainString
Adjusted published domain name.

Response

Body Params

NameDescription
codeInteger
Status code
messageString
Operational information
dataString
Return data

Error code

Error code(code)Description(message)HTTP statusSemantic
1301User has no permission200User has no permission
1004The parameter is incorrect. Please ensure that all required fields are filled in200The parameter is incorrect. Please ensure that all required fields are filled in
1000The audio id cannot be empty200The audio id cannot be empty
1000The audio id does not exist1000The audio id does not exist
1000The audio name cannot be empty at the same time as the published domain name200The audio name cannot be empty at the same time as the published domain name
1000Audio name out of length range200Audio name out of length range
1527The domain name contains special characters200The domain name contains special characters
1531Domain name does not exist200Domain name does not exist

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/editAudio" \
-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": "idxxxxxx",
    "audioName":"tranNoxxxxxxx",
    "publishDomain":"www.baidu.com",
}'
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!