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"
}Changes
Changed in 2 of the 89 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 124 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲