Hosting: Cron Jobs
Create account cron job
Creates a cron job for the specified account from a schedule expression and a command.
Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
post/api/hosting/v1/accounts/{username}/cron-jobs
Path parameters
usernamestring required
Example:u123456789
Request body
Example request
{
"time": "0 2 * * *",
"command": "php /home/u123456789/cleanup.php"
}Response
Success response
Example response
{
"uid": "cron_abc123",
"username": "u123456789",
"time": "0 2 * * *",
"command": "php /home/u123456789/cleanup.php"
}