From a52b57cc38acfc4e16208f15bf74bfdad1fdb697 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 29 Mar 2021 18:58:54 +0200 Subject: [PATCH] events: fix missing send_once param from api Signed-off-by: Jens Langhammer --- authentik/events/api/notification_transport.py | 1 + swagger.yaml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/authentik/events/api/notification_transport.py b/authentik/events/api/notification_transport.py index b36b2dd71..b20d0bd97 100644 --- a/authentik/events/api/notification_transport.py +++ b/authentik/events/api/notification_transport.py @@ -36,6 +36,7 @@ class NotificationTransportSerializer(ModelSerializer): "mode", "mode_verbose", "webhook_url", + "send_once", ] diff --git a/swagger.yaml b/swagger.yaml index 19efba957..e423dee30 100755 --- a/swagger.yaml +++ b/swagger.yaml @@ -15203,6 +15203,11 @@ definitions: webhook_url: title: Webhook url type: string + send_once: + title: Send once + description: Only send notification once, for example when sending a webhook + into a chat channel. + type: boolean NotificationTransportTest: description: Notification test serializer required: