ModifyAudioFile

更新时间:
复制 MD 格式

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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.