Edits the basic information that specifies a single tone frequency
Name | Description |
---|---|
*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. |
Name | Description |
---|---|
codeInteger | Status code |
messageString | Operational information |
dataString | Return data |
Error code(code) | Description(message) | HTTP status | Semantic |
---|---|---|---|
1301 | User has no permission | 200 | User has no permission |
1004 | The parameter is incorrect. Please ensure that all required fields are filled in | 200 | The parameter is incorrect. Please ensure that all required fields are filled in |
1000 | The audio id cannot be empty | 200 | The audio id cannot be empty |
1000 | The audio id does not exist | 1000 | The audio id does not exist |
1000 | The audio name cannot be empty at the same time as the published domain name | 200 | The audio name cannot be empty at the same time as the published domain name |
1000 | Audio name out of length range | 200 | Audio name out of length range |
1527 | The domain name contains special characters | 200 | The domain name contains special characters |
1531 | Domain name does not exist | 200 | Domain name does not exist |
#!/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", }'
{ "code": 200, "data": "", "message": "Operation succeeded" }