Agency Hosting: Cron Jobs
Create Agency Plan website cron job
Creates a cron job for an Agency Plan website from a schedule expression and a command.
Returns the created cron job, including its uuid, which is required to delete the cron job.
post/api/agency-hosting/v1/websites/{website_uid}/cron-jobs
Path parameters
website_uidstring required
Example:zpwlGlp19
Agency Plan website UID
Request body
Example request
{
"time": "*/30 * * * *",
"command": "php artisan schedule:run"
}Response
Success response
Example response
{
"uuid": "01931d6f-68f5-7b72-8d9e-09c6e1e6aa0e",
"time": "*/30 * * * *",
"command": "php artisan schedule:run",
"created_at": "2024-10-28T12:00:00+00:00"
}