From 1a14918f4a6760031a2f1617078ef9a26075367a Mon Sep 17 00:00:00 2001 From: "b.boterman@htm.nl" Date: Tue, 13 Jan 2026 15:45:52 +0100 Subject: [PATCH] OVPAY-2394 - Added PATCH /notificationsubscriptions/{uuid}. --- src/openapi/customers/notifications-crud.yaml | 87 +++++++++++++++++-- 1 file changed, 79 insertions(+), 8 deletions(-) diff --git a/src/openapi/customers/notifications-crud.yaml b/src/openapi/customers/notifications-crud.yaml index 6d18790..cb1e1a6 100644 --- a/src/openapi/customers/notifications-crud.yaml +++ b/src/openapi/customers/notifications-crud.yaml @@ -295,18 +295,71 @@ paths: type: object $ref: "#/components/schemas/500Response" /notificationsubscriptions/{notificationSubscriptionId}: + parameters: + - name: notificationSubscriptionId + in: path + required: true + schema: + type: string + format: uuid + example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377 + patch: + summary: Update a notification subscription by ID + tags: + - Notification Subscriptions + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/PatchNotificationSubscriptionRequest" + examples: + updateNotificationSubscriptionRequest: + value: + ovPayTokenId: 43 + responses: + "200": + description: Notification subscription updated successfully + content: + application/json: + schema: + $ref: "#/components/schemas/PatchNotificationSubscriptionResponse" + examples: + updateNotificationSubscriptionResponse: + value: + notificationSubscriptionId: 5bedce29-af0c-4f3c-b182-2caa8a1f9377 + "400": + description: Bad request + content: + application/json: + schema: + type: object + $ref: "#/components/schemas/400Response" + "401": + description: Unauthorized + content: + application/json: + schema: + type: object + $ref: "#/components/schemas/401Response" + "404": + description: Not found + content: + application/json: + schema: + type: object + $ref: "#/components/schemas/404Response" + "500": + description: Internal server error + content: + application/json: + schema: + type: object + $ref: "#/components/schemas/500Response" delete: summary: Delete a notification subscription by ID tags: - Notification Subscriptions - parameters: - - name: notificationSubscriptionId - in: path - required: true - schema: - type: string - format: uuid - example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377 responses: "204": description: No content @@ -1190,6 +1243,24 @@ components: type: string format: uuid example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377 + PatchNotificationSubscriptionRequest: + type: object + properties: + notificationCategoryId: + type: integer + example: 1 + customerProfileId: + type: integer + example: 1337 + required: + - notificationCategoryId + PatchNotificationSubscriptionResponse: + type: object + properties: + notificationSubscriptionId: + type: string + format: uuid + example: 5bedce29-af0c-4f3c-b182-2caa8a1f9377 PostSubscriptionActivityRequest: type: object properties: