更新
POST
/cron/v1/update请求参数
Body 参数application/json
id
number
唯一标识
name
string
任务名称
cron
string
定时表达式
shell
string
执行的命令
active
number
可选
状态 1启用 | 0禁用
remark
string
任务备注
config
string
高级配置
示例值:
{"before_task_shell": "任务运行前的执行命令", "after_task_shell": "任务运行后的执行命令", "log_directory": "日志目录路径(纯前端功能关联数据)", "source_file": "源码文件路径(纯前端功能关联数据)", "allow_concurrency": "是否允许并发"}
示例
{
"id": 0,
"name": "string",
"cron": "string",
"shell": "string",
"active": 0,
"remark": "string",
"config": "{\"before_task_shell\": \"任务运行前的执行命令\", \"after_task_shell\": \"任务运行后的执行命令\", \"log_directory\": \"日志目录路径(纯前端功能关联数据)\", \"source_file\": \"源码文件路径(纯前端功能关联数据)\", \"allow_concurrency\": \"是否允许并发\"}"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
响应
数据结构
No schema defined
示例
未设置