You can invoke ModifyAudioFile to modify the audio file associated with a specified audio resource ID under a given instance. You can update the audio file name, display name, and the OSS key of the audio file.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID. |
ccc-test |
| AudioResourceId |
string |
Yes |
Audio resource ID, which uniquely identifies an audio file. |
acc300c4-75c9-41ba-ba5e-2a365c96c248 |
| Name |
string |
Yes |
Display name of the audio file. It must be 1 to 32 characters in length. The display name cannot be changed when modifying the audio file, so you must provide the original display name here. |
欢迎语 |
| OssFileKey |
string |
Yes |
The OSS key of the audio file to be modified. |
ccc-test/new-test-file.wav |
| AudioFileName |
string |
Yes |
Name of the audio file to be modified. You can specify new content for the audio file here. |
new-test-file.wav |
| Usage |
string |
No |
Usage of the audio file. The default value is General (used in scenarios such as IVR). Other valid values include HoldMusic (hold music during call waiting). |
General |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
HTTP status code. |
200 |
| Code |
string |
Response code. |
OK |
| Message |
string |
Response message. |
无 |
| Data |
string |
Data. |
无 |
| RequestId |
string |
Request ID. |
D2F84AAC-7C79-547F-8EE9-7B735F42B93F |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"Code": "OK",
"Message": "无",
"Data": "无",
"RequestId": "D2F84AAC-7C79-547F-8EE9-7B735F42B93F"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | NotExists.InstanceId | The specified instance %s does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.