Chief Tools Logo
Server Chief API v1

Endpoints for the maintenance schedules of the team: install updates or reboot servers once, every week or every month, within a window nothing starts after. Each run starts a batch, which works through the servers at its pace and pauses after too many failures.


List maintenance schedules

GET
https://server.chief.app/api/v1
/maintenance-schedules
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the team's maintenance schedules, the next to run first and schedules that are turned off last.

List maintenance schedules › query Parameters

query
​string | null · maxLength: 255

Search results by name.

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1

List maintenance schedules › Responses

Paginated set of MaintenanceSchedule

​MaintenanceSchedule[] · required
​object · required
​object · required

Create a maintenance schedule

POST
https://server.chief.app/api/v1
/maintenance-schedules
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Schedule installing updates or rebooting servers once, every week or every month. Each run starts a batch on the servers the schedule picks at that moment: servers that are offline, or have nothing to install, are left out with why. Nothing starts after the window: the agents get its end as a deadline. A run that pauses after failures, or finishes with servers that failed or were left out, notifies the team members who want maintenance notifications.

Create a maintenance schedule › Request Body

action
​string · enum · required

What each run does: upgrade_packages installs updates, reboot reboots the servers.

Enum values:
reboot
upgrade_packages
Example: upgrade_packages
frequency
​string · enum · required

once at run_at, weekly on days, or monthly on the week_of_month weekday in days.

Enum values:
once
weekly
monthly
Example: weekly
name
​string | null · maxLength: 100

A name of your own, null or empty to name the schedule after its timing and action, such as "Sunday night security updates".

Example: Sunday night security updates
scope
​string · enum

For upgrade_packages: which pending updates to install.

Enum values:
security
all
Default: security
restart_services
​boolean

For upgrade_packages: restart the services that use updated libraries.

Default: true
reboot_if_required
​boolean

For upgrade_packages: reboot a server after its updates when it needs one, only within the window.

Default: false
if_required
​boolean

For reboot: only reboot servers that need a reboot.

Default: false
query
​string | null · maxLength: 500

A server search that picks the servers on each run, empty for all of the team's servers. Leave it out when naming servers.

Example: tag:production
servers
​string[] · maxItems: 500

Formatted IDs of servers the team owns, instead of query.

Example: ["server_01j8q8zk2f4m6n7p9r1s3t5v7x"]
concurrency
​integer

How many servers a run works on at the same time: 1, 2 or 4 for updates, and also 10 for reboots.

Default: 4
stop_after_failures
​integer | null · min: 1 · max: 100

The failures after which a run pauses, null to never pause. Defaults to 2 for updates and 1 for reboots.

Example: 2
run_at
​string | null · date-time

For a one-off run: when it starts, in the future. Without an offset it is read in timezone.

Example: 2026-11-20T22:00:00+01:00
days
​array | null · maxItems: 7

ISO days of the week, 1 is Monday: every day of a weekly schedule, or the one weekday of a monthly schedule.

Example: [7]
week_of_month
​integer | null · enum

For a monthly schedule: which of the month's weekdays, 1 to 4, or -1 for the last.

Enum values:
1
2
3
4
-1
Example: 1
time
​string | null

Start time of a weekly or monthly run in timezone, as HH:MM.

Example: 03:00
timezone
​string

The timezone of time, days and a run_at without an offset.

Default: UTC
window_minutes
​integer · enum

Minutes after the start that nothing starts anymore: 30, 60, 120, 240 or 480.

Enum values:
30
60
120
240
480
Default: 120
enabled
​boolean

Whether the schedule runs.

Default: true

Create a maintenance schedule › Responses

The maintenance schedule was created.

​MaintenanceSchedule · required

Get a maintenance schedule

GET
https://server.chief.app/api/v1
/maintenance-schedules/{schedule}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Get one of the team's maintenance schedules, with its next and last run.

Get a maintenance schedule › path Parameters

schedule
​string · required

Get a maintenance schedule › Responses

MaintenanceSchedule

​MaintenanceSchedule · required

Update a maintenance schedule

PATCH
https://server.chief.app/api/v1
/maintenance-schedules/{schedule}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Change a maintenance schedule, or turn it off or on with enabled. Fields left out keep their value. The next run is worked out again from now; a run that already started keeps going.

Update a maintenance schedule › path Parameters

schedule
​string · required

Update a maintenance schedule › Request Body

action
​string · enum · required

What each run does: upgrade_packages installs updates, reboot reboots the servers.

Enum values:
reboot
upgrade_packages
Example: upgrade_packages
frequency
​string · enum · required

once at run_at, weekly on days, or monthly on the week_of_month weekday in days.

Enum values:
once
weekly
monthly
Example: weekly
name
​string | null · maxLength: 100

A name of your own, null or empty to name the schedule after its timing and action, such as "Sunday night security updates".

Example: Sunday night security updates
scope
​string · enum

For upgrade_packages: which pending updates to install.

Enum values:
security
all
Default: security
restart_services
​boolean

For upgrade_packages: restart the services that use updated libraries.

Default: true
reboot_if_required
​boolean

For upgrade_packages: reboot a server after its updates when it needs one, only within the window.

Default: false
if_required
​boolean

For reboot: only reboot servers that need a reboot.

Default: false
query
​string | null · maxLength: 500

A server search that picks the servers on each run, empty for all of the team's servers. Leave it out when naming servers.

Example: tag:production
servers
​string[] · maxItems: 500

Formatted IDs of servers the team owns, instead of query.

Example: ["server_01j8q8zk2f4m6n7p9r1s3t5v7x"]
concurrency
​integer

How many servers a run works on at the same time: 1, 2 or 4 for updates, and also 10 for reboots.

Default: 4
stop_after_failures
​integer | null · min: 1 · max: 100

The failures after which a run pauses, null to never pause. Defaults to 2 for updates and 1 for reboots.

Example: 2
run_at
​string | null · date-time

For a one-off run: when it starts, in the future. Without an offset it is read in timezone.

Example: 2026-11-20T22:00:00+01:00
days
​array | null · maxItems: 7

ISO days of the week, 1 is Monday: every day of a weekly schedule, or the one weekday of a monthly schedule.

Example: [7]
week_of_month
​integer | null · enum

For a monthly schedule: which of the month's weekdays, 1 to 4, or -1 for the last.

Enum values:
1
2
3
4
-1
Example: 1
time
​string | null

Start time of a weekly or monthly run in timezone, as HH:MM.

Example: 03:00
timezone
​string

The timezone of time, days and a run_at without an offset.

Default: UTC
window_minutes
​integer · enum

Minutes after the start that nothing starts anymore: 30, 60, 120, 240 or 480.

Enum values:
30
60
120
240
480
Default: 120
enabled
​boolean

Whether the schedule runs.

Default: true

Update a maintenance schedule › Responses

MaintenanceSchedule

​MaintenanceSchedule · required

Delete a maintenance schedule

DELETE
https://server.chief.app/api/v1
/maintenance-schedules/{schedule}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Delete a maintenance schedule. A run that already started keeps going, and its batches stay in the history.

Delete a maintenance schedule › path Parameters

schedule
​string · required

Delete a maintenance schedule › Responses

The maintenance schedule was deleted.

string

List the runs of a maintenance schedule

GET
https://server.chief.app/api/v1
/maintenance-schedules/{schedule}/runs
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the batches a maintenance schedule started, newest first, with their progress and the servers they left out.

List the runs of a maintenance schedule › path Parameters

schedule
​string · required

List the runs of a maintenance schedule › query Parameters

query
​string | null · maxLength: 255

Search results by name.

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1

List the runs of a maintenance schedule › Responses

Paginated set of Batch

​Batch[] · required
​object · required
​object · required

Get a batch

GET
https://server.chief.app/api/v1
/batches/{batch}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Get a batch of the team: one command per server under shared settings, to install updates or reboot, started from the web app or by a maintenance schedule. The batch webhook events carry the same object.

Get a batch › path Parameters

batch
​string · required

Get a batch › Responses

Batch

​Batch · required