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
| Name | Description | Required | Type |
|---|---|---|---|
| notificationId | The Notification ID | Required | string |
| status | The status of the notification. This can be either "read" or "unread" | Required | string |
| readAt | The date & time at which the notification was read in ISO3601format. Required if the satus is "read" | Not Required | string |
Response
| Code | Description |
|---|---|
| 200 | Updated notification record |
| 409 | Unauthorized |
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": [
+ {}
]
...
]