Mark Notifications as Read
Info
Draft Documentation - This section is currently under review and may be subject to changes.
This method marks one or more notifications as read for a player. Multiple notifications can be updated in a single request by providing an array of message IDs.
Request (PATCH)
/gateway/notifications/{version}/{brand_id}
{
"message_ids": [
"a7f8c934-1b2d-4e5f-9c8a-7d6e5f4a3b2c",
"b8e9d045-2c3e-5f6g-0d9b-8e7f6g5b4c3d",
"c9f0e156-3d4f-6g7h-1e0c-9f8g7h6c5d4e"
]
}Parameters:
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| version | path | string | true | The API version to use (e.g., “1.0”). |
| brand_id | path | int | true | The ID of the casino brand. |
| message_ids | body | array | true | Array of notification message IDs (UUIDs) to mark as read. |
Headers:
| Name | Type | Required | Description |
|---|---|---|---|
| x-auth-token | string | true | Player authentication token. |
Response
Status 200
{
"status": "Success",
"data": {
"message": "notification was successfully updated"
}
}Response Parameters:
| Name | Type | Description |
|---|---|---|
| status | string | Operation status (“Success”). |
| message | string | Confirmation message. |
Example: Mark Single Notification as Read
Request:
{
"message_ids": [
"a7f8c934-1b2d-4e5f-9c8a-7d6e5f4a3b2c"
]
}Response:
{
"status": "Success",
"data": {
"message": "notification was successfully updated"
}
}Example: Mark Multiple Notifications as Read
Request:
{
"message_ids": [
"a7f8c934-1b2d-4e5f-9c8a-7d6e5f4a3b2c",
"b8e9d045-2c3e-5f6g-0d9b-8e7f6g5b4c3d",
"c9f0e156-3d4f-6g7h-1e0c-9f8g7h6c5d4e"
]
}Response:
{
"status": "Success",
"data": {
"message": "notification was successfully updated"
}
}Status 400
{
"status": "error",
"message": "Bad Request - Invalid request body or missing message_ids"
}Status 401
{
"status": "error",
"message": "Unauthorized - Invalid or missing authentication token"
}Status 500
{
"status": "error",
"message": "Internal server error"
}Notes
- This operation updates the
is_readflag totrueand sets theupdate_timeto the current timestamp. - Marking an already-read notification as read again has no effect (idempotent operation).
- The operation uses a database transaction with rollback handling to ensure data integrity.
- Non-existent message IDs in the array are silently ignored.
- Empty
message_idsarray will return a 400 error.