You can call the UpdateLivePullToPush operation to update a pull-to-push task.
Operation description
You can call this operation to update a pull-to-push task.
The
Regioncan be updated only before the task's scheduled start time.While a task is running (including during retry attempts for exceptions), you can update only the
CallbackUrlandRepeatTimeparameters. The changes take effect immediately.If a task is stopped, you can update all parameters except for
Region.
QPS limit
You can call this operation up to 10 times per second per account. Exceeding this limit triggers throttling, which can impact your business. We recommend that you call this operation reasonably.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:UpdateLivePullToPush |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| TaskId |
string |
Yes |
The task ID. |
fd245384-4067-4f91-9d75-9666a6bc**** |
| Region |
string |
Yes |
The region where the task runs. Valid values:
|
cn-shanghai |
| StartTime |
string |
No |
The start time of the task. Note
|
2024-08-23T15:30:00Z |
| EndTime |
string |
No |
The end time of the task. Note
|
2024-08-27T14:30:00Z |
| SourceUrls |
array |
No |
A list of source stream URLs. Note
|
changedtesturl |
|
string |
No |
The URL of a source stream. Note
|
rtmp://pulltest.****.aliyunlive.com/pulltest493/pulltest-w434 |
|
| RepeatNumber |
integer |
No |
The number of times the playlist repeats after it finishes. Valid values:
Note
|
0 |
| Offset |
integer |
No |
The playback offset for a video file, in seconds. The value must be greater than 0. Note
|
2 |
| CallbackUrl |
string |
No |
The webhook for task event notifications. If this parameter is omitted, no notifications are sent. Note
|
https://callback*****.com |
| FileIndex |
integer |
No |
The index of the video file in the playlist from which to start playback. Default value: 0. Note
This parameter must be updated while the task is stopped. The change takes effect after the task restarts. |
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The ID of the request. |
16A96B9A-F203-4EC5-8E43-CB92E68***** |
| RetCode |
integer |
The return code. Note
|
0 |
| Description |
string |
The error description. |
OK |
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68*****",
"RetCode": 0,
"Description": "OK"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s. | Parameter error |
| 400 | InvalidParam.CodeIllegalDuration | %s. | The value of start time should be less than the value of end time . |
| 400 | CodeInvalidAliUid | This aliuid does not have a live domain name. | This aluid does not have a live domain name. |
| 400 | CodeTaskNotExist | Task does not exist. | The task does not exist. |
| 400 | CodeTaskHasStarted | The task has already started. | The task has already started and cannot be updated. |
| 500 | InternalError | %s. | error on the live liveapi server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.