createSchedule(projectReference: String!, input: CreateScheduleInput!): Schedule!
Requires project.runs.write.
Arguments
Input fields
input
Response
Returns Schedule!. Open the type for its fields and nested types.
Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.
Example
mutation CreateSchedule($projectReference: String!, $input: CreateScheduleInput!) {
createSchedule(projectReference: $projectReference, input: $input) {
id
projectId
name
status
createdAt
}
}{
"projectReference": "example-project",
"input": {
"name": "Nightly report",
"target": {
"kind": "task",
"id": "nightly-report"
},
"schedule": "0 2 * * *"
}
}