Update Email Alerts
The follwing mutation updates an email alert:
- Query
- cURL
mutation UpdateTestSuiteEmailAlert($testSuiteEmailAlertId: ObjectID!, $email: String, $alertTypes: [EmailAlertType]) {
createTestSuiteEmailAlert(input: {
testSuiteEmailAlertId: $testSuiteEmailAlertId,
email: $email
alertTypes: $alertTypes
}) {
testSuiteEmailAlert {
id
email
alertTypes
}
}
}
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 UpdateTestSuiteEmailAlert($testSuiteEmailAlertId: ObjectID!, $email: String, $alertTypes: [EmailAlertType]) { createTestSuiteEmailAlert(input: { testSuiteEmailAlertId: $testSuiteEmailAlertId, email: $email alertTypes: $alertTypes }) { testSuiteEmailAlert { id email alertTypes } } }"}' https://api.lumar.io/graphql