1.用途
采用Post方式,请求参数为JSON格式
2.URL
http://124.223.60.234:8181/spartan/report/addReportAuto
3.请求参数
3.1.参数示例
{
"startTime":"2023-04-01 00:00:00",
"endTime":"2023-10-01 00:00:00",
"dateType":1,
"reportTypes":"1,2,3,4,5,6",
"sendEmail":0,
"email":"",
"exportType":0,
"terminalIds":"[\"1957EE0C69614AB3B3AF2755103B0AB6\",\"589D6C6B4678434FB962971BA8513432\"]",
"userId":"21"
}
3.2.参数说明
字段 | 类型 | 说明 | 是否必须 |
---|---|---|---|
startTime | String | 计划执行开始时间(UTC) | Y |
endTime | String | 计划执行结束时间(UTC) | Y |
dateType | int | 1:every week;2:every 2 week;3:every month | Y |
reportTypes | String | 1:status report;2:boundary alerts;3:stops/mileage;4:low battery alter;5:over speed alter;6:Data usage;多个用英文半角逗号隔开 | Y |
sendEmail | int | 是否邮件发送:0:否;1:是 | Y |
String | 用户邮件地址 | Y | |
exportType | int | 导出类型:0:HTML;1:CSV | Y |
terminalIds | String | 设备唯一标识List集合,转成JSON字符串 | Y |
userId | String | 用户的唯一标识 | Y |
4.返回参数
4.1.返回参数示例
{
"code": 200,
"message": "Operation succeeded",
"data":null
}
4.2.返回参数说明
字段 | 类型 | 说明 |
---|---|---|
code | int | 返回状态,详情参见“返回状态集” |
message | String | 返回结果描述 |
data | Object | 返回结果体 |
5.请求示例
作者:admin 创建时间:2023-04-12 13:46
最后编辑:admin 更新时间:2024-06-13 09:41
最后编辑:admin 更新时间:2024-06-13 09:41