Files
2026-10-12 05:18:59 -04:00

94 lines
3.6 KiB
JSON

[
{
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/schedules/1",
"status": 200,
"body": {
"object": "server_schedule",
"attributes": {
"id": 1,
"name": "Nightly restart",
"cron": {
"day_of_week": "*",
"day_of_month": "*",
"month": "*",
"hour": "3",
"minute": "0"
},
"is_active": true,
"is_processing": false,
"only_when_online": true,
"last_run_at": "2026-01-02T03:04:05+00:00",
"next_run_at": "2026-03-05T03:00:00+00:00",
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-03-04T05:06:07+00:00",
"relationships": {
"tasks": {
"object": "list",
"data": [
{
"object": "schedule_task",
"attributes": {
"id": 1,
"sequence_id": 1,
"action": "command",
"payload": "say \"Restarting\" in 60s",
"time_offset": 0,
"is_queued": false,
"continue_on_failure": true,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00"
}
},
{
"object": "schedule_task",
"attributes": {
"id": 2,
"sequence_id": 2,
"action": "power",
"payload": "restart",
"time_offset": 60,
"is_queued": true,
"continue_on_failure": false,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00"
}
}
]
}
}
}
}
},
{
"request": "GET /api/client/servers/5e7f0001-0000-4000-8000-000000000001/schedules/2",
"status": 200,
"body": {
"object": "server_schedule",
"attributes": {
"id": 2,
"name": "Disabled cleanup",
"cron": {
"day_of_week": "1-5",
"day_of_month": "*",
"month": "*",
"hour": "*",
"minute": "*/15"
},
"is_active": false,
"is_processing": false,
"only_when_online": false,
"last_run_at": null,
"next_run_at": null,
"created_at": "2026-01-02T03:04:05+00:00",
"updated_at": "2026-02-03T04:05:06+00:00",
"relationships": {
"tasks": {
"object": "list",
"data": []
}
}
}
}
}
]