Skip to main content
POST
Create schedule

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

project_reference
string
required
Minimum string length: 1

Body

application/json
name
string
required
Required string length: 1 - 255
target
object
required
schedule
string
required
Required string length: 1 - 255
timezone
string
Required string length: 1 - 128
runtime_target_kind
enum<string>
Available options:
main_branch,
environment,
preview_branch
runtime_target_environment_id
string<uuid> | null
runtime_target_branch_id
string<uuid> | null
config
object
timeout_seconds
integer
backoff_limit
integer
Required range: x >= 0
concurrency_policy
enum<string>
Available options:
Allow,
Forbid,
Replace
max_runs
integer | null
definition_source
enum<string>
Available options:
manual,
source
source_trigger_id
string

Trigger id from the source definition. When a schedule with this id already exists, creating it from source can return that schedule with its current status; a paused schedule remains paused.

Required string length: 1 - 255
source_path
string
Required string length: 1 - 1024
source_hash
string
Required string length: 1 - 255

Response

Created an active recurring project schedule for a task, workflow, or agent target.

schedule
object
required

The created schedule. New schedules are active by default.