Update Slack Webhooks
The follwing mutation updates a slack webhook:
- Query
- cURL
mutation UpdateSlackWebhook($slackWebhookId: ObjectID!, $alertTypes: [SlackAlertTypes]) {
updateAutomatorSlackWebhook(input: {
slackWebhookId: $slackWebhookId,
alertTypes: $alertTypes
}) {
slackWebhook {
id
url
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 UpdateSlackWebhook($slackWebhookId: ObjectID!, $alertTypes: [SlackAlertTypes]) { updateAutomatorSlackWebhook(input: { slackWebhookId: $slackWebhookId, alertTypes: $alertTypes }) { slackWebhook { id url alertTypes } } }"}' https://api.lumar.io/graphql