AddCasterEpisodeGroupContent
Adds program list information for a production studio.
Operation description
Create a production studio and add a program list to it before you call this operation to add program list information. To create a production studio by using the API, see Create a production studio.
QPS limit
The QPS limit for a single user is 4 requests per second. If the number of requests per second exceeds the limit, throttling is triggered, which may affect your business. Call this operation at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddCasterEpisodeGroupContent |
create |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| ClientToken |
string |
Yes |
The client token that is used to ensure the idempotence of the request. Note
The parameter value is generated by the client. Make sure that the value is unique across different requests and is up to 64 ASCII characters in length. |
8751ad99-2ddb-4aac-ad44-84b21102**** |
| Content |
string |
Yes |
Sets the properties of the production studio program. The value is a JSON string. The parameters use the upper camel case format. The property information is described as follows:
|
{"CallbackUrl":"http://example.aliyundoc.com/callBackLive","SideOutputUrl":"rtmp://guide.aliyundoc.com/caster/4a82a3d1b7f0462ea37348366201****?auth_key=1608953344-0-0-ac8c628078541d7055a170ec59a5****","DomainName":"developer.aliyundoc.com ","StartTime":"2018-03-26T16:00:00Z","RepeatNum":-1,"Items":[{"ItemName":"program1","VodUrl":"http://learn.aliyundoc.com"},{"ItemName":"program2","VodUrl":"http://demo.aliyundoc.com"}]} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ItemIds |
object |
||
| ItemId |
array |
The list of program IDs. |
|
|
string |
The program ID. |
21926b36-7dd2-4fde-ae25-51b5bc8e**** |
|
| ProgramId |
string |
The program ID. It can be used as a request parameter for creating or adding program items, deleting program items, querying program items, editing programs, deleting programs, querying programs, starting programs, and stopping programs. |
16A96B9A-F203-4EC5-8E43-CB92E68X**** |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Examples
Success response
JSON format
{
"ItemIds": {
"ItemId": [
"21926b36-7dd2-4fde-ae25-51b5bc8e****"
]
},
"ProgramId": "16A96B9A-F203-4EC5-8E43-CB92E68X****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s. | Missing parameter |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | There are invalid parameters: %s. |
| 400 | IncorrectStartTime | %s, please check and try again later. | The parameter StartTime is invalid, please check and try again. |
| 400 | InvalidClientToken.Malformed | %s, please check and try again later. | The parameter ClientToken is invalid, please check and try again. |
| 401 | IllegalOperation | %s, please check and try again later. | Operation not allowed, please check and try again. |
| 500 | InternalError | %s, please try again later. | Internal error, please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.