Modifies the configurations of an episode in a production studio. You cannot change the episode type.

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 ModifyCasterEpisode

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

CasterId String Yes LIVEPRODUCER_POST-cn-0pp1czt****

The ID of the production studio.

EpisodeId String Yes a2b8e671-2fe5-4642-a2ec-bf938623****

The ID of the episode.

RegionId String No cn-shanghai

The ID of the region.

EpisodeName String No episode_name_1

The name of the episode.

ResourceId String No 16A96B9A-F203-4EC5-8E43-CB92E683****

The ID of the video resource.

  • This parameter takes effect and is required only when the EpisodeType is set to Resource.
  • If the EpisodeType parameter is set to Component, this parameter is invalid.
ComponentId.N RepeatList No ["16A96B9A-F203-4EC5-8E43-CB92E68F****"]

The ID of the component.

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.

  • This parameter takes effect and is required when the EpisodeType parameter is set to Component.
  • This parameter is optional when the EpisodeType parameter is set to Resource. In this case, if this parameter is specified, the components are bound with and switched together with video resources.
    Note The variable N indicates the sequence number of the component. For example, the ComponentId.1 parameter specifies the ID of the first component. The ComponentId.2 parameter specifies the ID of the second component.
StartTime String No 2016-06-29T09:00:00Z

The time when the episode starts. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

EndTime String No 2016-06-29T10:20:00Z

The time when the episode ends. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

SwitchType String No TimeFirst

The policy for switching episodes. This parameter takes effect only when the EpisodeType parameter is set to Resource. Valid values:

  • TimeFirst: The episode starts when the preceding episode ends and ends when the next episode starts. If no next episode exists, the episode keeps repeating until a new episode is added or the production studio stops. This parameter must be set to TimeFirst when the video resource is a live stream.
  • ContentFirst: The episode starts and ends as scheduled.

Response parameters

Parameter Type Example Description
CasterId String LIVEPRODUCER_POST-cn-0pp1czt****

The ID of the production studio.

EpisodeId String a2b8e671-2fe5-4642-a2ec-bf938623****

The ID of the episode.

RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the request.

Examples

Sample requests

http(s)://live.aliyuncs.com/? Action=ModifyCasterEpisode
&CasterId=LIVEPRODUCER_POST-cn-0pp1czt****
&EpisodeId=a2b8e671-2fe5-4642-a2ec-bf938623****
&<Common request parameters>

Sample success responses

XML format

<ModifyCasterEpisodeResponse>
	  <RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
      <EpisodeId>a2b8e671-2fe5-4642-a2ec-bf938623****</EpisodeId>
      <CasterId>LIVEPRODUCER_POST-cn-0pp1czt****</CasterId>
</ModifyCasterEpisodeResponse>

JSON format

{
    "RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8",
    "EpisodeId": "a2b8e671-2fe5-4642-a2ec-bf938623****",
    "CasterId": "LIVEPRODUCER_POST-cn-0pp1czt****"
}

Error codes

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