From 939194158a9f43afa8e0132f80eb577c9dd0bed3 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Fri, 1 Apr 2016 09:49:44 -0700 Subject: [PATCH] Closes #257 --- lemur/notifications/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemur/notifications/views.py b/lemur/notifications/views.py index 281546ac..f03e4349 100644 --- a/lemur/notifications/views.py +++ b/lemur/notifications/views.py @@ -376,7 +376,7 @@ class Notifications(AuthenticatedResource): :statuscode 200: no error """ self.reqparse.add_argument('label', type=str, location='json', required=True) - self.reqparse.add_argument('plugin', type=dict, location='json', required=True) + self.reqparse.add_argument('notificationOptions', type=list, location='json') self.reqparse.add_argument('active', type=bool, location='json') self.reqparse.add_argument('certificates', type=list, default=[], location='json') self.reqparse.add_argument('description', type=str, location='json') @@ -385,7 +385,7 @@ class Notifications(AuthenticatedResource): return service.update( notification_id, args['label'], - args['plugin']['pluginOptions'], + args['notificationOptions'], args['description'], args['active'], args['certificates']