Scheduled Commands

Update scheduled command

Update a scheduled command.

patch/scheduled-commands/{scheduledCommand}

Request

  • Base URL
    https://cloud.laravel.com/api
  • Auth
    HTTP bearer

Path parameters

scheduledCommandstring required

The scheduled command identifier

Request body

namestring nullable

A friendly name for the scheduled command.

commandstring

The command to run. Each command can only be scheduled once per instance.

schedulestring

A five-field cron expression, evaluated in UTC. The @yearly, @annually, @monthly, @weekly, @daily, @midnight, and @hourly descriptors are also accepted.

Example request

{
  "name": "Prune stale models",
  "command": "php artisan model:prune",
  "schedule": "0 0 * * *"
}

Response

ScheduledCommandResource

Changes

No recorded changes to this operation across all 1 revision of this API.