更新节目。
接口说明
调用 UpdateProgram 接口创建节目。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ice:UpdateProgram |
update |
*全部资源
|
无 | 无 |
请求语法
POST / HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProgramName |
string |
是 |
节目名称。 |
program1 |
| ChannelName |
string |
是 |
频道名称。 |
MyChannel |
| ClipRange |
string |
否 |
片段信息。 |
{StartOffsetMillis: 213123, EndOffsetMillis: 213134} |
| AdBreaks |
string |
否 |
广告信息。 |
[{"MessageType":"SPLICE_INSERT","OffsetMillis":1000,"SourceLocationName":"MySourceLocation","SourceName":"MyAdSource","SpliceInsertSettings":{"AvailNumber":0,"AvailExpected":0,"SpliceEventID":1,"UniqueProgramID":0}}] |
| SourceLocationName |
string |
否 |
源位置名称。 |
MySourceLcation |
| SourceName |
string |
否 |
源名称。 |
MySource |
| SourceType |
string |
否 |
节目的源类型。 |
vodSource |
| Transition |
string |
否 |
节目转换信息。 |
{"Type": "RELATIVE", "RelativePosition": "AFTER_PROGRAM", "RelativeProgram": "program2"} |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID |
xxx-xxxx-xxxxx-xxxx |
| Program | ChannelAssemblyProgram |
节目信息。 |
示例
正常返回示例
JSON格式
{
"RequestId": "xxx-xxxx-xxxxx-xxxx",
"Program": {
"GmtCreate": "2024-04-02T00:58:19Z\n",
"ChannelName": "MyChannel",
"SourceLocationName": "MySourceLocation",
"AdBreaks": [
{
"TimeSignalSettings": "{\"segmentationEventID\":0,\"segmentationUPIDType\":14,\"segmentationUPID\":\"upid\",\"segmentationTypeID\":48,\"segmentNumber\":0,\"segmentsExpected\":0,\"subSegmentNumber\":1,\"subSegmentsExpected\":0}\n",
"OffsetMillis": 1000,
"ChannelName": "MyChannel",
"SourceLocationName": "MySourceLocation",
"SpliceInsertSettings": "{\"AvailNumber\":0,\"AvailExpected\":0,\"SpliceEventID\":1,\"UniqueProgramID\":0}\n",
"SourceName": "MyAdSource",
"ProgramName": "program_name\n",
"MessageType": "SPLICE_INSERT"
}
],
"SourceType": "vodSource",
"Transition": "{\"Type\": \"RELATIVE\", \"RelativePosition\": \"AFTER_PROGRAM\", \"RelativeProgram\": \"program2\"}\n",
"GmtModified": "2024-04-02T00:58:19Z\n",
"SourceName": "MySource",
"ClipRange": "{StartOffsetMillis: 213123, EndOffsetMillis: 213134}\n",
"Arn": "acs:ims:mediaweaver:::program/myChannel/MyProgram\n",
"ProgramName": "program1"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。