Modifies the configuration of callbacks for video moderation results. As a result, the callback URL that is used to receive the callback notifications is changed.

Usage notes

  • Obtain the main streaming domain, and then call this operation to modify the configuration of callbacks for video 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 30 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 automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateLiveDetectNotifyConfig

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

DomainName String Yes example.com

The main streaming domain.

NotifyUrl String Yes http://guide.aliyundoc.com/examplecallback.action

The callback URL that is used to receive callback notifications about violations, such as pornographic content, detected in live streams.

Response parameters

Parameter Type Example Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=UpdateLiveDetectNotifyConfig
&DomainName=example.com
&NotifyUrl=http:// guide.aliyundoc.com/examplecallback.action
&<Common request parameters>

Sample success responses

XML format

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

<?xml version="1.0" encoding="UTF-8" ?>
<UpdateLiveDetectNotifyConfigResponse>
	<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</UpdateLiveDetectNotifyConfigResponse>

JSON format

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

{
  "UpdateLiveDetectNotifyConfigResponse" : {
    "RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  }
}

Error codes

HTTP status code Error code Error message Description
400 InvalidNotifyUrl.Malformed Specified NotifyUrl is invalid. The error message returned because the callback URL is invalid. Check whether the value of the NotifyUrl parameter is valid.
400 InvalidNotifyUrl.Unsafe Specified NotifyUrl is not safe. The error message returned because the callback URL is unsecure. Check whether the value of the NotifyUrl parameter is valid.
404 InvalidConfig.NotFound Config does not exist. The error message returned because the configuration is not found. Check whether the request parameters are valid.

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