Menambahkan episode ke studio produksi.
Deskripsi operasi
Before you call this operation, obtain the ID of the production studio. The ID is generated when the production studio is created.
-
If you create a production studio by calling the CreateCaster operation, check the value of the returned CasterId parameter.
-
If you create a production studio in the LIVE console, go to LIVE Console > Production Studio > Production Studio to view the name of the production studio.
The name of the production studio in the production studio list serves as the production studio ID.
QPS limits
The queries per second (QPS) limit for this operation is 4 for each account. API calls that exceed this limit are throttled, which may affect your business. Plan your calls accordingly.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddCasterEpisode |
create |
*Caster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| ComponentId |
array |
No |
Daftar ID Komponen. Komponen dilapisi dari bawah ke atas sesuai Pesanan yang ditentukan. Jika Anda menambahkan komponen dengan memanggil operasi AddCasterComponent, periksa nilai parameter ComponentId yang dikembalikan.
Catatan
N menunjukkan nomor urut ID Komponen. Misalnya, ComponentId.1 menunjukkan ID Komponen pertama dan ComponentId.2 menunjukkan ID Komponen kedua. |
["a2b8e671-2fe5-4642-a2ec-bf93880e****"] |
|
string |
No |
The component ID. |
21926b36-7dd2-4fde-ae25-51b5bc8e**** |
|
| CasterId |
string |
Yes |
ID studio produksi.
Catatan
Nama studio produksi dalam daftar studio produksi berfungsi sebagai ID studio produksi. |
LIVEPRODUCER_POST-cn-0pp1czt**** |
| EpisodeType |
string |
Yes |
Tipe node. Nilai valid:
|
Resource |
| EpisodeName |
string |
No |
Nama episode. |
episode_1 |
| ResourceId |
string |
No |
ID Sumber video. Penting
Parameter ini wajib dan hanya berlaku ketika EpisodeType ditetapkan ke Resource. Jika Anda menambahkan Sumber video dengan memanggil operasi AddCasterVideoResource, periksa nilai parameter ResourceId yang dikembalikan. |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| StartTime |
string |
Yes |
Waktu mulai. Pengatur waktu dalam format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu ditampilkan dalam UTC. |
2016-06-29T08:00:00Z |
| EndTime |
string |
Yes |
Waktu berakhir. Pengatur waktu dalam format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu ditampilkan dalam UTC. |
2016-06-29T09:10:00Z |
| SwitchType |
string |
Yes |
Kebijakan peralihan. Nilai valid: Penting
Parameter ini hanya berlaku ketika EpisodeType ditetapkan ke Resource.
Catatan
Untuk informasi selengkapnya tentang Sumber video, lihat Menambahkan Sumber video. |
TimeFirst |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| EpisodeId |
string |
The ID of the episode. This ID can be used as a request parameter to query the episode list, modify an episode, or delete an episode. |
21926b36-7dd2-4fde-ae25-51b5bc8e**** |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
Contoh
Respons sukses
JSONformat
{
"EpisodeId": "21926b36-7dd2-4fde-ae25-51b5bc8e****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s. | |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | |
| 400 | SwitchTypeInvalid.Malformed | %s, please check and try again later. | |
| 400 | IncorrectStartTime | %s, please check and try again later. | |
| 400 | IncorrectEndTime | %s, please check and try again later. | |
| 400 | EpisodeConflict.Malformed | %s, please check and try again later. | |
| 400 | InvalidCasterId.Malformed | %s, please check and try again later. | |
| 401 | IllegalOperation | %s, please check and try again later. | |
| 500 | InternalError | %s, please try again later. | |
| 404 | InvalidCaster.NotFound | %s, please check and try again later. | |
| 404 | InvalidResource.NotFound | %s, please check and try again later. | |
| 404 | InvalidComponent.NotFound | %s, please check and try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.