Skip to main content

Create Slack Webhooks

The follwing mutation creates a slack webhook for a test suite:

Operation: mutation CreateSlackWebhook($testSuiteId: ObjectID!, $url: String!) { createAutomatorSlackWebhook(input: { testSuiteId: $testSuiteId, url: $url }) { slackWebhook { id url alertTypes } } }
CreateSlackWebhookTry in Explorer
GraphQL
mutation CreateSlackWebhook($testSuiteId: ObjectID!, $url: String!) {
createAutomatorSlackWebhook(input: {
testSuiteId: $testSuiteId,
url: $url
}) {
slackWebhook {
id
url
alertTypes
}
}
}
caution

testSuiteId and url are the required fields.