Client area

MCP tool · SSL, backups, cron & logs

manage_cron_jobs

List, create, update or delete the cron jobs on a hosting account.

manage_cron_jobs
W Write
Scope read:hosting
Destructive

Description

List, create, update or delete the cron jobs on a hosting account. list returns each job's cronId, schedule and command; create adds one from a five-field schedule (e.g. 0 3 * * *) and a command; update replaces a job by cron_id with a new schedule and command; delete removes one by its cronId. list needs read:hosting; create, update and delete need write:hosting.

Input

Name Type Description
input required string A domain, email address, website URL, numeric service id, or hosting-account username the customer actually owns. Resolved to the owning account automatically; the resolved target is echoed back in the response.
action required enum What to do: list all jobs (read), create a new job, update one by cron_id, or delete one by cron_id. One of list, create, update, delete.
schedule string For create and update: five cron fields (minute hour day-of-month month day-of-week), e.g. 0 3 * * *, or a macro like @daily.
command string For create and update: the shell command the cron runs. Passed verbatim to DirectAdmin as its own field.
cron_id string For update and delete: the cronId from a list call — the numeric id of the job.

Example conversation

User

Add a nightly cron job.

Assistant

Creating 0 3 * * * to run your backup script. Done.

Illustrative. The assistant calls manage_cron_jobs behind the reply; tier W decides whether it executes directly or returns a confirmation link.

Esc
navigate open Esc close