Create Test Suites
The following mutation creates a test suite for a given account:
- Query
- cURL
mutation CreateTestSuite($accountId: ObjectID!, $name: String!, $sitePrimary: String!) {
createTestSuite(
input: { accountId: $accountId, name: $name, sitePrimary: $sitePrimary }
) {
testSuite {
id
name
sitePrimary
}
}
}
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 CreateTestSuite($accountId: ObjectID!, $name: String!, $sitePrimary: String!) { createTestSuite( input: { accountId: $accountId, name: $name, sitePrimary: $sitePrimary } ) { testSuite { id name sitePrimary } } }"}' https://api.lumar.io/graphql