modify_crond
修改已有计划任务的配置。
- 路由:
POST /crontab - action:
modify_crond
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 modify_crond |
| id | 是 | Integer | 任务 ID |
| name | 是 | String | 新任务名称 |
| type | 是 | String | 周期类型 |
| where1 | 是 | String | 周期值 |
| sType | 是 | String | 任务类型 |
| sBody | 是 | String | 执行内容 |
| sName | 否 | String | 备注 |
示例
POST /crontab HTTP/1.1
Content-Type: application/x-www-form-urlencoded
action=modify_crond&id=6&name=修改后任务&type=minute-n&where1=30&sType=toShell&sBody=echo updated&sName=
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| status | Boolean | 请求结果,true 表示成功 |
| msg | String | 提示信息 |
{"status": true, "msg": "修改成功"}