Modifies the recording callback configurations of a streaming domain.

Usage note

You can call this operation to modify the following configurations:

  • The callback URL that is used to receive notifications about recording events and status. For more information, see Recording event callbacks.
  • The callback URL for on-demand recordings. For more information, see On-demand recording callbacks.
  • Specifies whether to enable callbacks for recording status.

QPS limit

A single user can perform a maximum of 30 queries per second (QPS). Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Thus, we recommend that you observe the QPS limit on this operation. For more information about what a single user means and the QPS details, 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 UpdateLiveRecordNotifyConfig

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

DomainName String Yes example.com

The main streaming domain.

NotifyUrl String No http://learn.aliyundoc.com/examplecallback.action

The callback URL that is used to receive notifications about recording events and status.

Notice This parameter must be specified when the NeedStatusNotify parameter is set to true.
  • The URL must start with http:// or https://.
  • You must use URLEncoder for encoding so that the system can identify Chinese characters, spaces, and special characters.
OnDemandUrl String No http://guide.aliyundoc.com/ondemandcallback.action

The callback URL for on-demand recordings.

  • The URL must start with http:// or https://.
  • You must use URLEncoder for encoding so that the system can identify Chinese characters, spaces, and special characters.
NeedStatusNotify Boolean No false

Specifies whether to enable callbacks for recording status. Valid values:

Note If this papameter is set to true, the NotifyUrl parameter must be specified in the request.
  • true: enables callbacks for recording status.
  • false: disables callbacks for recording status. This is the default value.

Response parameters

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

The ID of the request.

Examples

Sample requests

https://live.aliyuncs.com/?Action=UpdateLiveRecordNotifyConfig
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

<UpdateLiveRecordNotifyConfigResponse>
      <RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</UpdateLiveRecordNotifyConfigResponse>

JSON format

{
    "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 format of the callback URL is invalid. Check whether the value of the NotifyUrl parameter is correct.
400 InvalidNotifyUrl.Unsafe Specified NotifyUrl is not safe. The error message returned because the callback URL is unsafe. Check whether the value of the NotifyUrl parameter is correct.
404 InvalidConfig.NotFound Config does not exist. The error message returned because no configuration can be found based on the request parameters. Check whether the request parameters are correct.

For a list of error codes, visit the API Error Center.