Link Test Suites
The following mutation links a test suite to a global template:
- Query
- cURL
mutation LinkToGlobalTemplate($parentTestSuiteId: ObjectID!, $childTestSuiteId: ObjectID!){
linkChildTestSuiteToParentTestSuite(input: {
parentTestSuiteId: $parentTestSuiteId
childTestSuiteId: $childTestSuiteId
}) {
id
parentTestSuite {
id
}
childTestSuite {
id
}
}
}
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 LinkToGlobalTemplate($parentTestSuiteId: ObjectID!, $childTestSuiteId: ObjectID!){ linkChildTestSuiteToParentTestSuite(input: { parentTestSuiteId: $parentTestSuiteId childTestSuiteId: $childTestSuiteId }) { id parentTestSuite { id } childTestSuite { id } } }"}' https://api.lumar.io/graphql
caution
In case you link two test suites together and none of them are linked, the parentTestSuiteId
will become a Global Template.