Mark Read Broadcast Messages
This endpoint marks as viewed/read a broadcast message for a user.
info
This operation does not require authentication.
HTTP Request
POST /api/v2/notification/banner/read/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
banner_ids | body | list([integer]) | true | The request body(banner ids list) |
Example Body Parameters
- JSON
{
"banner_ids": ["integer"]
}
Example Request
- JavaScript
- Bash
const inputBody = '{
"banner_ids": ["integer"]
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json'
};
fetch('/api/v2/notification/banner/read/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
curl -X POST /api/v2/notification/banner/read/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json'
-H "Authorization: Bearer <token>"
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Response status code | None |
Example responses
- 200
{
"banner_ids": ["integer"]
}