You need to enable JavaScript to run this app.
导航
设置巡航路径V3
最近更新时间:2025.02.14 16:29:36首次发布时间:2025.02.14 16:29:36

设置巡航路径(创建或修改巡航路径)。

请求说明

  • 请求方式:POST
  • 请求地址:https://open.volcengineapi.com?Action=SetCruiseTrack&Version=2023-10-01

请求参数

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

Query

参数类型是否必选示例值描述
ActionStringSetCruiseTrack接口名称。当前 API 的名称为 SetCruiseTrack
VersionString2023-10-01接口版本。当前 API 的版本为 2023-10-01

Body

参数类型是否必选示例值描述
StreamIDString23355851-2d31-461c-9e44-968a0afb72f2视频流 ID,可通过调用 ListStreams 接口获取
TrackIDFloat1巡航组编号,取值范围:[1, 255]
TrackListObject of TrackList巡航路径预置位列表, 最多可添加255个预置位,参考以下 TrackList 结构说明
SpeedFloat2巡航速度,取值范围:[1, 4095]
StaySecondsFloat5预置位停留时间,单位:秒,[1,4095]

TrackList

参数类型是否必选示例值描述
PresetIDFloat1预置位编号
PresetNameString预置位1预置位名称

返回参数

本接口无特有的返回参数。更多信息请见返回结构

请求示例

POST https://open.volcengineapi.com?Action=SetCruiseTrack&Version=2023-10-01
{
    "DeviceNSID": "340200379911xxxxxxxx",
    "ChannelID": "340200000013xxxxxxxx",
    "TrackID": 1,
    "TrackList": [
        {
            "PresetID": 1,
            "PresetName": "预置位1"
        }
    ],
    "Speed": 200
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202112081549400102121450322701D9BA",
        "Action": "SetCruiseTrack",
        "Version": "2023-10-01",
        "Service": "aiotvideo",
        "Region": "cn-north-1"
    }
}

错误码

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