Authorization: Bearer ********************{
"name": "每日统计",
"command": "stats:user",
"command_custom": "string",
"params": [
{
"name": "string",
"value": "string"
}
],
"options": [
{
"name": "string"
}
],
"options_with_value": [
{
"name": "string",
"value": "string"
}
],
"expression": "0 1 * * *",
"environments": [
"local"
],
"description": "string",
"even_in_maintenance_mode": false,
"without_overlapping": false,
"on_one_server": false,
"run_in_background": false,
"status": 1
}curl --location 'http://prod-cn.your-api-server.com/admin/schedules' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "每日统计",
"command": "stats:user",
"command_custom": "string",
"params": [
{
"name": "string",
"value": "string"
}
],
"options": [
{
"name": "string"
}
],
"options_with_value": [
{
"name": "string",
"value": "string"
}
],
"expression": "0 1 * * *",
"environments": [
"local"
],
"description": "string",
"even_in_maintenance_mode": false,
"without_overlapping": false,
"on_one_server": false,
"run_in_background": false,
"status": 1
}'{
"id": 10000001,
"name": "每日统计",
"command": "stats:user",
"command_custom": "string",
"params": [
{
"name": "string",
"value": "string"
}
],
"options": [
{
"name": "string"
}
],
"options_with_value": [
{
"name": "string",
"value": "string"
}
],
"expression": "0 1 * * *",
"environments": [
"string"
],
"description": "string",
"even_in_maintenance_mode": true,
"without_overlapping": true,
"on_one_server": true,
"run_in_background": true,
"status": 1,
"status_text": "启用",
"command_string": "artisan stats:user",
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z"
}