Update Build Schedules
The following mutation updates a build schedule:
- Query
- cURL
mutation UpdateBuildSchedule($buildScheduleId: ObjectID!, $name: String, $startAt: Date, $repetitionRate: BuildScheduleRepetitionRate) {
updateBuildSchedule(input: {
buildScheduleId: $buildScheduleId
name: $name
startAt: $startAt
repetitionRate: $repetitionRate
}) {
buildSchedule {
id
name
startAt
repetitionRate
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation UpdateBuildSchedule($buildScheduleId: ObjectID!, $name: String, $startAt: Date, $repetitionRate: BuildScheduleRepetitionRate) { updateBuildSchedule(input: { buildScheduleId: $buildScheduleId name: $name startAt: $startAt repetitionRate: $repetitionRate }) { buildSchedule { id name startAt repetitionRate } } }"}' https://api.lumar.io/graphql
caution
- Not specifying
startAt
will only update the repetition rate. - To make the build schedule non-repeatable,
null
can be set torepetitionRate
.