curl --location --request POST 'http://localhost:5600/open/crons/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"command": "string",
"schedule": "@boot",
"labels": [
"string"
],
"sub_id": 0,
"extra_schedules": [
{
"schedule": "string"
}
],
"task_before": "string",
"task_after": "string"
}'
{
"code": 0,
"data": {
"name": "string",
"command": "string",
"schedule": "@boot",
"timestamp": "2019-08-24T14:15:22Z",
"saved": true,
"id": 0,
"status": null,
"isSystem": 0,
"pid": 0,
"isDisabled": 0,
"log_path": "string",
"isPinned": 0,
"labels": [
"string"
],
"last_running_time": 0,
"last_execution_time": 0,
"sub_id": 0,
"extra_schedules": [
{
"schedule": "string"
}
],
"task_before": "string",
"task_after": "string"
}
}