You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
Adds support for sending an ad‑hoc custom notification to the
authenticated user via API and CLI. This is useful for surfacing the
result of scripts or long‑running tasks. Notifications are delivered
through the configured method and the dashboard Inbox, respecting
existing preferences and delivery settings.
## Changes
* New notification template: “Custom Notification” with a label for a
custom title and a custom message.
* New API endpoint: `POST /api/v2/notifications/custom` to send a custom
notification to the requesting user.
* New API endpoint: `GET /notifications/templates/custom` to get custom
notification template.
* New CLI subcommand: `coder notifications custom <title> <message>` to
send a custom notification to the requesting user.
* Documentation updates: Add a “Custom notifications” section under
Administration > Monitoring > Notifications, including instructions on
sending custom notifications and examples of when to use them.
Closes: #19611
Long: "Administrators can use these commands to change notification settings.\n"+FormatExamples(
18
18
Example{
19
-
Description: "Pause Coder notifications. Administrators can temporarily stop notifiers from dispatching messages in case of the target outage (for example: unavailable SMTP server or Webhook not responding).",
19
+
Description: "Pause Coder notifications. Administrators can temporarily stop notifiers from dispatching messages in case of the target outage (for example: unavailable SMTP server or Webhook not responding)",
20
20
Command: "coder notifications pause",
21
21
},
22
22
Example{
23
23
Description: "Resume Coder notifications",
24
24
Command: "coder notifications resume",
25
25
},
26
26
Example{
27
-
Description: "Send a test notification. Administrators can use this to verify the notification target settings.",
27
+
Description: "Send a test notification. Administrators can use this to verify the notification target settings",
28
28
Command: "coder notifications test",
29
29
},
30
+
Example{
31
+
Description: "Send a custom notification to the requesting user. Sending notifications targeting other users or groups is currently not supported",
0 commit comments