Mark a Specific Feed Object as Read
This endpoint marks as read a list of objects in the feed. Usually it is called when a Feed object enter the viewport of the user.
info
This operation requires authentication
HTTP Request
POST /api/v2/feed/read/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
» object | body | list | false | List of Feed's object id |
Example Body Parameters
- JSON
{
"object": ["integer"]
}
Example Request
- JavaScript
- Bash
const inputBody = {
object: ["integer"]
};
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/feed/read/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X POST /api/v2/feed/read/ \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}' \
--data-raw '{
"object": ["integer"]
}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
204 | No Content | Response status code | None |