Mark notifications as read
POST <your-unleash-url>/api/admin/notifications/read
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Allow to select which notifications were read and saving a read date
Request
- application/json
Body
required
markNotificationsAsReadSchema
- notifications integer[] required
A list of IDs belonging to the notifications you want to mark as read.
Responses
- 200
This response has no body.
Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
Request
Request
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
python / requests
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
go / native
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
nodejs / native
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
ruby / Net::HTTP
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
csharp / httpclient
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
php / cURL
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
java / OkHttp
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'
powershell / RestMethod
curl -L -X POST '<your-unleash-url>/api/admin/notifications/read' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"notifications": [
5
]
}'