创建
根据项目功能设计,开放接口目前只允许创建用户任务。
Authorization
OpenApiToken api-token<token>
32位令牌,在控制面板《个人设置 - 令牌管理》页面获取
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:5678/api/open/cron/v1/create" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "cron": "string", "shell": "string" }'{
"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
}
