Modifies an episode list of a production studio.
Usage notes
You can call the AddCasterProgram operation to add an episode list to a production studio and then call the ModifyCasterProgram operation to modify the episode list. This operation supports videos and components as episodes.
QPS limit
You can call this operation up to 4 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 limits.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | ModifyCasterProgram | The operation that you want to perform. Set the value to ModifyCasterProgram. |
Episode.N.ComponentId.N | String | No | ["a2b8e671-2fe5-4642-a2ec-bf93888****" ] | The components. Components in the production studio are listed from the bottom to the top in an array. When the production studio switches to another video resource, the components are also switched.
|
Episode.N.EndTime | String | No | 2016-06-29T10:04:00Z | The end time of the episode. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
Episode.N.EpisodeId | String | No | a2b8e671-2fe5-4642-a2ec-bf938887**** | The ID of the episode. If the episode was added by calling the AddCasterEpisode operation, check the value of the response parameter EpisodeId to obtain the ID. |
Episode.N.EpisodeName | String | No | program_name_2 | The name of the episode. |
Episode.N.EpisodeType | String | No | Resource | The type of the episode. Valid values:
|
Episode.N.ResourceId | String | No | a2b8e671-2fe5-4642-a2ec-bf938887**** | The ID of the video resource. If the video resource was added by calling the AddCasterVideoResource operation, check the value of the response parameter ResourceId to obtain the ID. |
Episode.N.StartTime | String | No | 2016-06-29T09:02:00Z | The end time of the episode. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
Episode.N.SwitchType | String | No | TimeFirst | The policy for switching episodes. This parameter is valid only when you set the Episode.N.EpisodeType parameter to Resource.
|
CasterId | String | Yes | a2b8e671-2fe5-4642-a2ec-bf93880e**** | The ID of the production studio.
Note You can find the ID of the production studio in the Instance ID/Name column. |
To modify an episode, you must specify at least one episode-related parameter.
N in the preceding request parameters indicates the sequence number. For example,
Episode.N.EpisodeName specifies the name of episode N. For example, Episode.1.EpisodeName specifies the name of the first episode and Episode.2.EpisodeName specifies the name of the second episode.
Response parameters
Parameter |
Type |
Example |
Description |
CasterId | String | a2b8e671-2fe5-4642-a2ec-bf93880e**** | The ID of the production studio. |
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The request ID. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=ModifyCasterProgram
&CasterId=a2b8e671-2fe5-4642-a2ec-bf93880e****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyCasterProgramResponse>
<CasterId>a2b8e671-2fe5-4642-a2ec-bf93880e****</CasterId>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</ModifyCasterProgramResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"CasterId" : "a2b8e671-2fe5-4642-a2ec-bf93880e****",
"RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
For a list of error codes, see Service error codes.