How to disable legacy Slack integration

If you have the legacy Slack Integration enabled and would like to disable it, you can use the following API request to remove the Slack webook URL from your project settings.

This API call will disable your legacy Slack integration. You will need to create and pass the Personal API Token in the "Circle-Token" HTTP header in order to authenticate the API call:
Note: Replace {vcs} (github or bitbucket), {org}, and {project} with the appropriate values.

curl -X PUT '{vcs}/{org}/{project}/settings' \
-H 'Content-Type: application/json' \
-H "Circle-Token: $CIRCLE_TOKEN" \
--data-binary '{"slack_webhook_url":""}'

We can then confirm that the legacy Slack Integration is indeed disabled with the following:

curl -X GET '{vcs}/{org}/{project}/settings' \
-H "Circle-Token: $CIRCLE_TOKEN" | jq '.slack_webhook_url'

It should return a blank string if the legacy Slack Integration has been disabled successfully.

Was this article helpful?
10 out of 17 found this helpful



Article is closed for comments.