中科图灵开放平台 / 智慧消防系统管理模块 / 任务新增或修改

任务新增或修改

接口描述: 任务新增或修改

HTTP/HTTPS
请求协议
POST
请求方式
UTF-8
编码格式
JSON
返回格式
v1.0
版本号

接口参数

参数名字类型是否必须默认值其他说明
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"
}
}
失败响应返回示例:

错误列表

错误状态码错误描述信息
400ret=400,客户端参数错误或非法请求
404表示接口服务不存在
406ret=406,access_token令牌校验不通过
407ret=407,app_key权限不足,或未知应用
408ret=408,当前用户禁止使用,或用户未登录
409ret=409,接口流量不足
500表示服务端内部错误

本文档生成时间:2024-04-19 11:37:40