Overview
Update an existing cron job. When you update a cron job, all pending events created by that cron are automatically deleted and new events will be generated based on the updated schedule.Parameters
string
required
The UUID of the cron job to update.
string
required
The full URL of the webhook endpoint to call. Must be a valid HTTP/HTTPS URL.
string
HTTP method to use for the webhook request. Options:
GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. Defaults to POST.string
required
Cron expression defining the schedule (e.g.,
0 9 * * * for daily at 9 AM).string | null
Timezone for the cron schedule (e.g.,
America/New_York). null for UTC.object | null
Custom headers to include in the webhook request. Object with string keys and values.
object | null
Payload to send with the webhook request. Can be any JSON-serializable object.
object | null
Retry configuration for failed webhook attempts.
boolean
Whether the cron job should be active.
true to activate, false to deactivate.Response
Cron
required
The updated cron job object.
Errors
When you update a cron job, all pending events created by that cron are automatically deleted and new events will be generated based on the updated schedule.
NotFoundError: If the cron job doesn’t existValidationError: If the update data is invalid (e.g., invalid cron expression)UnauthorizedError: If API key is invalid or missing