Update a Slack or Discord integration
Changes the URL of the Slack or Discord destination that a notification configuration already has. It never creates a destination, never deletes one, never sends a test message and never switches the channel on or off. A configuration with no destination of that type answers 404: create it with “Create a Slack or Discord integration”.
The integration_type in the path is slack or discord. The complete URL is returned on ordinary reads too. Your role must be allowed to edit notification configurations and the organization’s plan must include the channel; otherwise the request answers 404. The body is checked before the configuration, so a configuration of another organization answers 404 only when the URL is valid.
Body
url(string, required): at most 2048 characters, a completehttps://hooks.slack.com/services/...orhttps://discord.com/api/webhooks/...URL that matches the type. An empty, missing or masked URL is invalid input, never a request to delete: use “Delete a Slack or Discord integration” for that.
Errors
- 404: no destination of that type, or the type in the path is neither
slacknordiscord. - 422:
urlis empty, masked or not valid for the type.
Authentication
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Path parameters
Request
Response
200 - Integration URL changed
