接口说明
为服务器上的媒体文件(如录像文件)添加或更新备注信息。执行备注操作前,请先调用录像查询接口获取文件信息,本接口的请求参数主要来源于录像查询接口的返回结果。
数据权限说明
只能操作登录账号已有权限的设备
API地址
https://v7.cmsv8.com/StandardApiAction_updateMediaRemark.action?jsession=66d754dd7f41473dbd2&vehiIdno=S66666&fileTimeI=1758613544&sourceId=567441&mediaType=1&svrId=7&filePath=E:/gStorage/RECORD_FILE/110101011101/2025-09-23/0_0_0_567441_00110101011101250923154544000200.mp4&fileSize=386747&fileType=1&channel=-1&fileLocation=2&remark=重要录像片段
请求参数
| 参数名称 | 参数类型 | 必须 | 示例 | 参数含义 |
|---|---|---|---|---|
| jsession | string | 是 | 66d754dd7f41473dbd2 | 会话号 |
| vehiIdno | string | 是 | S66666 | 车牌号 |
| fileTimeI | number | 是 | 1758613544 | 文件开始时间(Unix时间戳,单位:秒)。由录像查询接口返回的年(year)-月(mon)-日(day)+文件开始时间(beg)计算得出 |
| sourceId | number | 是 | 7 | 取录像查询接口返回的sourceId |
| mediaType | number | 是 | 1 | 多媒体类型 0表示图片,1表示视频。取录像查询接口返回的mediaType |
| svrId | number | 是 | 7 | 服务器ID。取录像查询接口返回的svr |
| filePath | string | 是 | E:/gStorage/RECORD_FILE/110101011101/2025-09-23/0_0_0_567441_00110101011101250923154544000200.mp4 | 文件路径。取录像查询接口返回的file |
| fileSize | number | 是 | 386747 | 文件大小(单位byte)。取录像查询接口返回的len |
| fileType | number | 是 | 1 | 录像类型 0表示常规,1表示报警。取录像查询接口返回的type |
| channel | number | 是 | -1 | 设备通道(从0开始) 0表示通道1,1表示通道2。取录像查询接口返回的chn |
| fileLocation | number | 是 | 2 | 文件位置。取录像查询接口返回的loc |
| remark | string | 是 | 重要录像片段 | 备注 |
返回参数
| 参数名称 | 参数类型 | 参数含义 | ||
|---|---|---|---|---|
| result | number | 接口状态码,0为正常 其他为异常(详情参见:[错误码说明](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1 "错误码说明")) | ||
| isOk | string | true表示成功,false表示失败 | ||
返回示例
{
"result": 0,
"isOk": true
}