Unlink Test Suites
The following mutation unlinks a test suite from a global template:
- Query
- cURL
mutation UnlinkFromGlobalTemplate($childTestSuiteId: ObjectID!){
unlinkChildTestSuiteFromParentTestSuite(input: {
childTestSuiteId: $childTestSuiteId
}) {
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 UnlinkFromGlobalTemplate($childTestSuiteId: ObjectID!){ unlinkChildTestSuiteFromParentTestSuite(input: { childTestSuiteId: $childTestSuiteId }) { parentTestSuite { id } childTestSuite { id } } }"}' https://api.lumar.io/graphql
caution
An error will be thrown if the childTestSuiteId
is not linked to a global template.