Toggle Test Automatic Threshold
The following mutation toggles automatic threshold on a test:
- Query
- cURL
mutation ToggleTestAutomaticThreshold(
$testId: ObjectID!
$automaticThresholdEnabled: String!
) {
updateTest(
input: {
testId: $testId
automaticThresholdEnabled: $automaticThresholdEnabled
}
) {
test {
id
automaticThresholdEnabled
}
}
}
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 ToggleTestAutomaticThreshold( $testId: ObjectID! $automaticThresholdEnabled: String! ) { updateTest( input: { testId: $testId automaticThresholdEnabled: $automaticThresholdEnabled } ) { test { id automaticThresholdEnabled } } }"}' https://api.lumar.io/graphql
caution
- This makes sense only when
automaticThresholdis enabled on the test's test suite andautomaticThresholdEnabledForAllis set tofalseon the test's test suite. - Having
automaticThresholdEnabledForAllset totruewill update the threshold on all tests on that test suite, no matter the value ofautomaticThresholdtest flag.