说明

修改一个已经存在的任务。
效果相当于:删除一个任务,再新增一个任务。

接口地址

POST /api/ac/edit-schedule?appid={APPID}

请求参数说明

名称 类型 必填 说明
appid string Y 管理员给用户创建的应用ID

Body 示例

 {
  "gwsn": "dcda0ccdcc3e",
  "is_timer":false,
  "task_id": 1,
  "start": 1757660855,
  "end": 1767660949
 }

字段说明

名称 类型 必填 说明
gwsn string Y 网关序列号
is_timer bool Y 是否定时任务(true:定时任务;false:预约任务)
task_id int Y 任务ID。已经存在的任务ID
start int Y 开始时间戳
end int Y 结束时间戳

回复数据

{
  "code": 200,
  "unikey": "5cb177d2-5527-4cd7-b906-300237e17e19",
  "msg": "成功"
}

回复字段说明

名称 类型 必填 说明
code int Y 200:成功,其它:异常。参考文档 通用返回值
unikey string Y 平台生成的唯一指令id
msg string Y 消息说明
作者:阮德明  创建时间:2025-11-21 14:36
最后编辑:阮德明  更新时间:2025-12-12 10:25