Skip to content

Create or replace a job schedule

PUT
/api/v1/jobs/{jobDefinitionId}/schedule

Validates and stores the Quartz CRON schedule after EDIT permission, then reconciles the durable scheduler trigger. Blank time zones default to UTC. Protected mutations require the session cookie and CSRF header.

jobDefinitionId
required
string format: uuid

Job definition identifier.

Recurring Quartz schedule for one job.

object
cronExpression
required

Quartz CRON expression with seconds, minutes, hours, day, month, and weekday fields.

string
Example
0 0 2 * * ?
enabled

Whether the scheduler may create runs from this schedule.

boolean
default: true
timeZone

IANA time-zone identifier. Null or blank defaults to UTC.

string
nullable
Example
UTC

Schedule created or replaced

Persisted job schedule and its currently computed next fire time.

object
createdAt

Creation timestamp in UTC.

string format: date-time
cronExpression

Validated Quartz CRON expression.

string
enabled

Whether the schedule is enabled.

boolean
jobDefinitionId

Scheduled job definition identifier.

string format: uuid
nextFireTime

Next fire time computed by the current scheduler, or null when disabled or unscheduled.

string format: date-time
nullable
timeZone

IANA time-zone identifier used by Quartz.

string
updatedAt

Last update timestamp in UTC.

string format: date-time

The request is malformed or fails validation.

RFC 7807 problem response. Dynamic detail text is credential-redacted.

object
detail
string
instance
string format: uri-reference
status
integer format: int32
title
string
type
string format: uri-reference

Authentication is required or credentials are invalid.

RFC 7807 problem response. Dynamic detail text is credential-redacted.

object
detail
string
instance
string format: uri-reference
status
integer format: int32
title
string
type
string format: uri-reference

The authenticated identity lacks the required permission.

RFC 7807 problem response. Dynamic detail text is credential-redacted.

object
detail
string
instance
string format: uri-reference
status
integer format: int32
title
string
type
string format: uri-reference

The requested resource does not exist or is not visible.

RFC 7807 problem response. Dynamic detail text is credential-redacted.

object
detail
string
instance
string format: uri-reference
status
integer format: int32
title
string
type
string format: uri-reference