创建
根据项目功能设计,开放接口目前只允许创建用户任务。
授权
Token api-token<token>
32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
位置: header
请求主体
application/json
TypeScript 定义
在 TypeScript 中使用 request body 类型。
创建定时任务请求体(name、cron、shell 必填)
响应主体
application/json
curl -X POST "https://example.com/cron/v1/create" \ -H "Content-Type: application/json" \ -d '{}'{ "id": 0, "name": "string", "type": "user", "cron": "string", "shell": "string", "active": 0, "config": "string", "tags": "string", "last_runtime": "string", "last_run_use": 0, "sort": 0, "create_time": "string", "remark": "string", "bind": "string", "is_running": true}
