diff --git a/website/server/controllers/api-v3/notifications.js b/website/server/controllers/api-v3/notifications.js index 8ded24d5ebd..def2158a35f 100644 --- a/website/server/controllers/api-v3/notifications.js +++ b/website/server/controllers/api-v3/notifications.js @@ -51,15 +51,17 @@ api.readNotification = { }; /** - * @api {post} /api/v3/notifications/read Mark multiple notifications as read + * @api {post} /api/v3/notifications/:notificationIds/read Mark multiple notifications as read * @apiName ReadNotifications * @apiGroup Notification * + * @apiParam (Path) {UUID} notificationIds + * * @apiSuccess {Object} data user.notifications */ api.readNotifications = { method: 'POST', - url: '/notifications/read', + url: '/notifications/:notificationIds/read', middlewares: [authWithHeaders()], async handler (req, res) { const { user } = res.locals;