Cancel Builds
The following mutation cancels a build:
- Query
- cURL
mutation CancelBuild($buildId: ObjectID!) {
cancelBuild(input: {
buildId: $buildId
}) {
build {
id
createdAt
updatedAt
status
}
}
}
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 CancelBuild($buildId: ObjectID!) { cancelBuild(input: { buildId: $buildId }) { build { id createdAt updatedAt status } } }"}' https://api.lumar.io/graphql
caution
You can have only one running Build per test suite.