Delete Slack Webhooks
The follwing mutation deletes a slack webhook:
- Query
- cURL
mutation DeleteSlackWebhook($slackWebhookId: ObjectID!) {
deleteAutomatorSlackWebhook(input: {
slackWebhookId: $slackWebhookId
}) {
slackWebhook {
id
}
}
}
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 DeleteSlackWebhook($slackWebhookId: ObjectID!) { deleteAutomatorSlackWebhook(input: { slackWebhookId: $slackWebhookId }) { slackWebhook { id } } }"}' https://api.lumar.io/graphql