Update Test Suites
The following mutation updates a test suite:
- Query
- cURL
mutation UpdateTestSuite($testSuiteId: ObjectID!, $name: String, $alertEmails: [String]) {
updateTestSuite(
input: { testSuiteId: $testSuiteId, name: $name, alertEmails: $alertEmails }
) {
testSuite {
id
name
sitePrimary
alertEmails
}
}
}
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 UpdateTestSuite($testSuiteId: ObjectID!, $name: String, $alertEmails: [String]) { updateTestSuite( input: { testSuiteId: $testSuiteId, name: $name, alertEmails: $alertEmails } ) { testSuite { id name sitePrimary alertEmails } } }"}' https://api.lumar.io/graphql