Skip to main content

Update Notification Status

Update the status of the notification. Eg. when it is read by the user. The endpoint below allows you to delete notification status.

PATCH /api/v1/client/account/notifications/{notificationId}

Path param

authorization : *bearer
REQUEST BODY SCHEMA: application/json


NameDescriptionRequiredType
notificationIdThe Notification ID Requiredstring
statusThe status of the notification. This can be either "read" or "unread" Requiredstring
readAtThe date & time at which the notification was read in ISO3601format. Required if the satus is "read"Not Requiredstring

Response

CodeDescription
200Updated notification record
409Unauthorized

Request Sample

Content type
application/json
[
{
"status": "unread",
"readAt": "2020-01-01T00:00:00.000Z"

}
...
]

Response Sample

Content type
application/json

[
"statusCode": 200,
"success": true,
"data": [
+ {}
]
...
]