Updates a caption rule.
Operation description
This operation updates the parameters for a specified caption rule.
The real-time caption feature is in invitational preview. Each user can add a maximum of 300 caption templates.
QPS limit
The queries per second (QPS) limit for this API operation is 60 per user. If you exceed this limit, API calls are throttled. This may affect your business. Plan your API calls accordingly.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLiveAIProduceRules |
create |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| Domain |
string |
Yes |
The primary playback domain name. |
demo.aliyundoc.com |
| App |
string |
Yes |
The name of the live streaming application. |
AppName |
| Suffix |
string |
No |
The suffix to match. |
test01 |
| SubtitleName |
string |
No |
The name of the caption template. |
sub01 |
| StudioName |
string |
No |
The name of the virtual background template. |
sub02 |
| IsLazy |
boolean |
No |
Specifies whether the caption is triggered by stream pulling. Valid values:
|
true |
| RulesId |
string |
No |
The ID of the caption rule. |
445409ec-7eaa-461d -8f29-4bec2eb9**** |
| LiveTemplate |
string |
No |
The specifications of the output caption. Valid values:
|
lp_ld |
| SubtitleId |
string |
No |
The ID of the caption template. |
445409ec-7eaa-461d-8f29-4bec2eb9**** |
| Description |
string |
No |
The description of the caption rule. The description can be up to 128 characters long and can contain Chinese characters, letters, digits, and special characters. |
live AI subtitle template |
Response parameters
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
5c6a2a0df228-4a64-af62-20e91b96**** |
Examples
Success response
JSON format
{
"RequestId": "5c6a2a0df228-4a64-af62-20e91b96****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s. | Missing parameter |
| 400 | InvalidParameter | %s. | Parameter error |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.