From 38cfec81c8b3a04dc730edc31e2b70eec2c448e3 Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Mon, 8 Dec 2025 14:35:33 +0100 Subject: [PATCH 1/3] removed is active from post body --- src/openapi/customers/SE-notifications.yaml | 61 +++++++++------------ 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/src/openapi/customers/SE-notifications.yaml b/src/openapi/customers/SE-notifications.yaml index ef9d597..681bc8e 100644 --- a/src/openapi/customers/SE-notifications.yaml +++ b/src/openapi/customers/SE-notifications.yaml @@ -410,47 +410,25 @@ paths: schema: $ref: "#/components/schemas/unavailable" examples: - Create notificationSubscription anonymous active: + Create notificationSubscription anonymous: value: { "emailAddress": "anonymous@mymailprovider.com", - "notificationCategoryId": 1, - "isActive": True, - } - Create notificationSubscription anonymous inactive: - value: - { - "emailAddress": "anonymous@mymailprovider.com", - "notificationCategoryId": 1, - "isActive": False, + "notificationCategoryId": 1 } Create notificationSubscription account active: - value: { "notificationCategoryId": 2, "isActive": True } - Create notificationSubscription account inactive: - value: { "notificationCategoryId": 2, "isActive": False } + value: { "notificationCategoryId": 2 } responses: "201": description: Created content: application/json: examples: - Create notificationSubscription anonymous active: - summary: Return the created notification for an anonymous user active + Create notificationSubscription anonymous: + summary: Return the created notification for an anonymous user inactive by default. value: { "notificationSubscriptionId": "e112f26e-37fa-4bde-8def-9977cd1d50ae", - "notificationCategory": - { - "notificationCategoryId": 2, - "name": "Nieuwsbrief aanmelding", - }, - "isActive": True, - } - Create notificationSubscription anonymous inactive: - summary: Return the created notification for an anonymous user inactive - value: - { - "notificationSubscriptionId": "d51081fd-c48d-4111-8de4-ac5db7d47ecb", "notificationCategory": { "notificationCategoryId": 2, @@ -467,15 +445,6 @@ paths: { "notificationCategoryId": 2, "name": "Nieuwsbrief aanmelding" }, "isActive": True, } - Create notificationSubscription account inactive: - summary: Return the created notification for an anonymous user inactive - value: - { - "notificationSubscriptionId": "0dfc0ac9-c221-4493-8828-9dfa79ad9061", - "notificationCategory": - { "notificationCategoryId": 2, "name": "Nieuwsbrief aanmelding" }, - "isActive": False, - } "405": description: Method not allowed, ook als een notificatie aangemaakt wordt voor een account maar op een anonieme manier benadert wordt. content: @@ -581,6 +550,26 @@ paths: }, "isActive": True, } + "405": + description: Method not allowed,wanneer het account emailadres niet geverifieerd is. + content: + application/json: + example: + { + "type": "https://api.integratielaag.nl/abt/touchpoint/2.0/notifications", + "title": "Methode niet toegestaan", + "detail": "", + "instance": "555d00b5-bc3f-4591-949b-479e76d49ea7", + "errors": + [ + { + "code": "405", + "detail": null, + "path": null, + "parameter": null, + }, + ], + } components: schemas: unavailable: -- 2.45.2 From f57f17e645cfa12bc053a6b1add79272ccf45555 Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Wed, 10 Dec 2025 12:37:12 +0100 Subject: [PATCH 2/3] removed email from notification patch --- src/openapi/customers/SE-notifications.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/openapi/customers/SE-notifications.yaml b/src/openapi/customers/SE-notifications.yaml index 681bc8e..1b30d51 100644 --- a/src/openapi/customers/SE-notifications.yaml +++ b/src/openapi/customers/SE-notifications.yaml @@ -502,14 +502,6 @@ paths: example: e112f26e-37fa-4bde-8def-9977cd1d50ae required: true description: The id of the notificationSubscription you want to update - - name: emailAddress - in: query - schema: - type: string - format: email - example: john.doe@mymailprovider.com - required: false - description: The emailadress of the customer in the case of anonymous opt-ins requestBody: content: application/json: -- 2.45.2 From d9157d04efa8e71ec569db74a327447ba8e45c4e Mon Sep 17 00:00:00 2001 From: Mirjam Herald Date: Wed, 10 Dec 2025 12:40:48 +0100 Subject: [PATCH 3/3] removed account or private from desc patch --- src/openapi/customers/SE-notifications.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openapi/customers/SE-notifications.yaml b/src/openapi/customers/SE-notifications.yaml index 1b30d51..72f3f4f 100644 --- a/src/openapi/customers/SE-notifications.yaml +++ b/src/openapi/customers/SE-notifications.yaml @@ -469,9 +469,9 @@ paths: patch: tags: - Notification subscriptions - summary: Update a notificationSubscription for a customer (account or private). + summary: Update a notificationSubscription for a customer. description: | - Update a notificationSubscription for a customer (account or private). + Update a notificationSubscription for a customer. parameters: - name: X-HTM-JWT-AUTH-HEADER in: header -- 2.45.2