修改導播台節目單。
介面說明
先通過 AddCasterProgram 介面添加導播台節目單,再調用本介面修改導播台節目單。本介面目前支援的節目類型為視頻源和組件。
QPS 限制
本介面的單使用者 QPS 限制為 4 次/秒。超過限制,API 呼叫會被限流,這可能會影響您的業務,請合理調用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
live:ModifyCasterProgram |
update |
*Domain
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
否 |
地區 ID。 |
cn-shanghai |
| Episode |
array<object> |
是 |
節目資訊。 |
|
|
object |
否 |
節目資訊。 |
||
| ComponentId |
array |
否 |
組件列表。按照元素順序由下而上排列,組件將與視頻源同步切換
|
["a2b8e671-2fe5-4642-a2ec-bf93888****" ] |
|
string |
否 |
組件列表。按照元素順序由下而上排列,組件將與視頻源同步切換
|
["a2b8e671-2fe5-4642-a2ec-bf93888****" ] |
|
| EndTime |
string |
否 |
結束時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2016-06-29T10:04:00Z |
| EpisodeId |
string |
否 |
節目 ID。如果您通過 AddCasterEpisode 介面添加導播台節目,請查看 AddCasterEpisode 介面調用返回的參數 EpisodeId 值。 |
a2b8e671-2fe5-4642-a2ec-bf938887**** |
| EpisodeName |
string |
否 |
節目名稱。 |
program_name_2 |
| EpisodeType |
string |
否 |
節目類型。取值:
|
Resource |
| ResourceId |
string |
否 |
視頻源 ID。 如果您通過 AddCasterVideoResource 介面添加導播台視頻源,請查看 AddCasterVideoResource 介面調用返回的參數 ResourceId 值。 |
a2b8e671-2fe5-4642-a2ec-bf938887**** |
| StartTime |
string |
否 |
起始時間。格式為:yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。 |
2016-06-29T09:02:00Z |
| SwitchType |
string |
否 |
切換策略。 節點類型為 Resource 視頻源時有效。
|
TimeFirst |
| CasterId |
string |
是 |
導播台 ID。
說明
直播控制台雲導播台頁面導播台列表中的導播台名稱即導播台 ID。 |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
請求參數必須傳一個要修改的節目內容,即至少一個 Episode 屬性。
請求參數中的 N 表示第幾個的意思。例如:
Episode.N.EpisodeName 表示傳入第幾個節目名稱。Episode.1.EpisodeName 表示傳入第 1 個節目名稱,Episode.2.EpisodeName 表示傳入第 2 個節目名稱。
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| CasterId |
string |
導播台 ID。 |
a2b8e671-2fe5-4642-a2ec-bf93880e**** |
| RequestId |
string |
請求 ID。 |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
樣本
正常返回樣本
JSON格式
{
"CasterId": "a2b8e671-2fe5-4642-a2ec-bf93880e****",
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParameter | %s. | 參數缺失 |
| 400 | InvalidParameter.Malformed | There are invalid parameters: %s. | 存在無效參數:%s。 |
| 400 | SwitchTypeInvalid.Malformed | %s, please check and try again later. | 參數SwitchType無效,請檢查後重試。 |
| 400 | IncorrectStartTime | %s, please check and try again later. | 參數StartTime無效,請檢查後重試。 |
| 400 | IncorrectEndTime | %s, please check and try again later. | 參數EndTime無效,請檢查後重試。 |
| 400 | IncorrectEpisodeStatus | %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. | 參數CasterId無效,請檢查後重試。 |
| 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 | InvalidEpisode.NotFound | %s, please check and try again later. | 節目不存在,請檢查後重試。 |
| 404 | InvalidComponent.NotFound | %s, please check and try again later. | 待操作的組件不存在,請檢查後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。