You need to enable JavaScript to run this app.
导航
创建截图模板
最近更新时间:2025.02.27 18:53:36首次发布时间:2021.11.25 17:22:10
我的收藏
有用
有用
无用
无用

创建截图模板。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

Query

参数类型是否必选示例值描述
ActionStringCreateScreenshotTemplate接口名称。当前 API 的名称为 CreateScreenshotTemplate
VersionString2021-01-01接口版本。当前 API 的版本为 2021-01-01

Body

参数类型是否必选示例值描述
TemplateNameString模板名称,支持汉字、大小写字母、数字、中划线
ScreenshotObject of Screenshot截图配置,参考以下 截图配置结构说明

Screenshot

参数类型是否必选示例值描述
ScreenshotPeriodInteger截图周期,单位ms,大于10秒,小于3分钟。
TypeArray of String模板类型,realtime/lowfrequency。
TTLObject of TTLTTL
EnableTimesArray of EnableTimes

TTL

参数类型是否必选示例值描述
DaysInteger存储天数。

EnableTimes

参数类型是否必选示例值描述
WeekDayInteger1星期几。
EnableFromString启用开始时间。
EnableToString启用结束时间。
EnableBooleantrue是否启用。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数类型示例值描述
IDString创建成功的截图模板 ID

请求示例

POST https://open.volcengineapi.com
{
    "TemplateName": "screenshot-template-01",
    "Screenshot": {
        "ScreenshotPeriod": 10000,
        "Type": [
            "realtime"
        ]
    }
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202112081952480102040490790900178D",
        "Action": "CreateScreenshotTemplate",
        "Version": "2021-01-01",
        "Service": "aiotvideo",
        "Region": "cn-north-1"
    },
    "Result": {
        "ID": "cc0c4bb7-7274-43a4-9aea-45dcb9f5c2d7"
    }
}

错误码

您可访问公共错误码,获取更多错误码信息。