HTTP/HTTPS
请求协议
中科图灵开放平台 / 智慧消防系统管理模块 / 任务新增或修改
任务新增或修改
接口地址:https://api.iot.ink/api/app.php?s=Manage.Admin_Miniaturefirestationtask_PostaddOrUpdateTask.Api
接口描述: 任务新增或修改
接口参数
参数名字 | 类型 | 是否必须 | 默认值 | 其他 | 说明 |
---|---|---|---|---|---|
access_token | 字符串 | 可选 | 访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口 | ||
apiRequestRaw | 字符串 | 必须 | - | { "advanceDay":0, "beginTime":"2021-05-25", "cycle":2, "cycleType":1, "deptId":460, "endTime":"2021-06-31", "fireStationReleId":[ 14, 16, 17, 21 ], "flag":"0", "taskMiniatureFireStationRecordsList":[ { "cycle":1, "cycleTime":"13:00-23:59", "cycleType":1, "taskContent":"检查", "taskType":1 }, { "cycle":1, "cycleTime":"13:00-23:59", "cycleType":1, "taskContent":"检查001", "taskType":1 }, { "cycle":1, "cycleTime":"13:00-23:00", "cycleType":2, "taskContent":"事务", "taskType":2 } ], "taskMiniatureNo":"" } | |
headerInfo | 字符串 | 必须 | - | {"Accept":""} |
返回字段
返回结果 | 类型 | 说明 |
---|---|---|
ret | 整型 | 状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误 |
data | 对象或混合类型 | 业务数据,由各自接口指定,通常为对象 |
data.code | 字符串 | 代表成功 |
data.msg | 字符串 | |
data.data | 字符串 | |
msg | 字符串 | 提示信息,失败时的错误提示 |
在线测试
参数 | 是否必须 | 值 |
---|---|---|
service | 必须 | |
access_token | 可选 | |
apiRequestRaw | 必须 | |
headerInfo | 必须 |
客户端请求示例
成功响应返回示例:
{
"code": 0,
"msg": null,
"data": {
"advanceDay":0,
"beginTime":"2021-05-25",
"cycle":2,
"cycleType":1,
"deptId":460,
"endTime":"2021-06-31",
"fireStationReleId":[
14,
16,
17,
21
],
"flag":"0",
"taskMiniatureFireStationRecordsList":[
{
"cycle":1,
"cycleTime":"13:00-23:59",
"cycleType":1,
"taskContent":"检查",
"taskType":1
},
{
"cycle":1,
"cycleTime":"13:00-23:59",
"cycleType":1,
"taskContent":"检查001",
"taskType":1
},
{
"cycle":1,
"cycleTime":"13:00-23:00",
"cycleType":2,
"taskContent":"事务",
"taskType":2
}
],
"taskMiniatureNo":"55555555"
}
}
失败响应返回示例:
错误列表
错误状态码 | 错误描述信息 |
---|---|
400 | ret=400,客户端参数错误或非法请求 |
404 | 表示接口服务不存在 |
406 | ret=406,access_token令牌校验不通过 |
407 | ret=407,app_key权限不足,或未知应用 |
408 | ret=408,当前用户禁止使用,或用户未登录 |
409 | ret=409,接口流量不足 |
500 | 表示服务端内部错误 |
本文档生成时间:2024-04-19 11:37:40