From f9087d6feb4c6ceab77298e82bc7510e3223d581 Mon Sep 17 00:00:00 2001 From: Jason Barnett Date: Wed, 17 Dec 2025 03:27:39 -0700 Subject: [PATCH] fix: correct Slack webhook example code in documentation (#21295) Fixes #21294 --- docs/admin/monitoring/notifications/slack.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/admin/monitoring/notifications/slack.md b/docs/admin/monitoring/notifications/slack.md index 99d5045656..394a63d704 100644 --- a/docs/admin/monitoring/notifications/slack.md +++ b/docs/admin/monitoring/notifications/slack.md @@ -89,11 +89,11 @@ To build the server to receive webhooks and interact with Slack: return res.status(400).send("Error: request body is missing"); } - const { title_markdown, body_markdown } = req.body; - if (!title_markdown || !body_markdown) { + const { title, body_markdown } = req.body; + if (!title || !body_markdown) { return res .status(400) - .send('Error: missing fields: "title_markdown", or "body_markdown"'); + .send('Error: missing fields: "title", or "body_markdown"'); } const payload = req.body.payload; @@ -115,11 +115,11 @@ To build the server to receive webhooks and interact with Slack: const slackMessage = { channel: userByEmail.user.id, - text: body, + text: body_markdown, blocks: [ { type: "header", - text: { type: "mrkdwn", text: title_markdown }, + text: { type: "plain_text", text: title }, }, { type: "section",