List source schedules

http
GET /projects/{project_reference}/source-schedules

List the schedules declared in the source files of a project, a branch or an environment to see what can be activated; returns every declared schedule as one page with the discovery diagnostics. Requires project.runs.read.

Parameters

NameInRequiredDescription
project_referencepathYes
runtime_target_kindqueryRuntime target to read from when source_target_kind is omitted.
target_environment_idqueryEnvironment ID when the target kind is environment.
target_branch_idqueryBranch ID when the target kind is preview_branch.
source_target_kindquerySource to read: project, main_branch, environment or preview_branch. Defaults to runtime_target_kind, then project.

Responses

StatusDescription
200Schedules declared in project source
400invalid_input: invalid source selection
401unauthenticated
403forbidden: a project member without project.runs.read
404not_found: project or source target not found or not visible
500internal
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.