Skip to main content

Create Email Alerts

The follwing mutation creates an email alert for a given test suite:

mutation CreateTestSuiteEmailAlert($testSuiteId: ObjectID!, $email: String!, $alertTypes: [EmailAlertType]) {
createTestSuiteEmailAlert(input: {
testSuiteId: $testSuiteId,
email: $email
alertTypes: $alertTypes
}) {
testSuiteEmailAlert {
id
email
alertTypes
}
}
}

Try in explorer

caution

alertTypes is optional and is defaulting to [Pass, Warning, Fail].