Modifies the configuration of callbacks for audio moderation results.

Usage notes

  • Obtain the main streaming domain, and then call this operation to modify the configuration of callbacks for audio moderation results.
  • Only some live centers support the automated review feature. For more information, see Supported regions.

QPS limit

You can call this operation up to 10 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limit on an API operation in ApsaraVideo Live.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateLiveAudioAuditNotifyConfig

The operation that you want to perform. Set the value to UpdateLiveAudioAuditNotifyConfig.

DomainName String Yes example.com

The main streaming domain.

Callback String No http://guide.aliyundoc.com/callback

The callback URL. This URL is used to receive callback notifications about violations in audio.

CallbackTemplate String No {"domain":{DomainName},"app":{AppName},"stream":{StreamName},"timestamp":{Timestamp},"result":{Result}}

The callback template. Configure the following attributes:

  • {DomainName}: the streaming domain.
  • {AppName}: the name of the application to which the live stream belongs.
  • {StreamName}: the name of the live stream.
  • {Timestamp}: the time when the callback is returned. The value of this attribute is a UNIX timestamp. Unit: seconds.
  • {Result}: the moderation results.

Response parameters

Parameter Type Example Description
RequestId String 7BF95F2A-3B24-4CDE-9346-7F6FA86697A1

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=UpdateLiveAudioAuditNotifyConfig
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8" ?>
<UpdateLiveAudioAuditNotifyConfigConfigResponse>
<RequestId>7BF95F2A-3B24-4CDE-9346-7F6FA86697A1</RequestId>
</UpdateLiveAudioAuditNotifyConfigConfigResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "UpdateLiveAudioAuditNotifyConfigConfigResponse" : {
    "RequestId" : "7BF95F2A-3B24-4CDE-9346-7F6FA86697A1"
  }
}

Error codes

For a list of error codes, see Service error codes.