Feed Elements Capability, Batch Update Read By

Mark multiple feed elements as read by the context user at the same time.
Resource
/chatter/feed-elements/batch/feedElementIds/capabilities/read-by
/connect/communities/communityId/chatter/feed-elements/batch/feedElementIds/capabilities/read-by
Available version
40.0
Requires Chatter
Yes
HTTP methods
PATCH
Request body for PATCH
Root XML tag
<readByCapability>
JSON example
{
   "isReadByMe": "true"
}
Properties
Name Type Description Required or Optional Available Version
isReadByMe Boolean Specifies to mark the feed element as read (true) for the context user. Required 40.0
lastReadDateByMe String Specifies the last date, in ISO 8601 format, when the feed element is marked as read for the context user. If you don’t specify a date or you specify a future date, the current system date is used. Optional 40.0
Request parameters for PATCH
Parameter Name Type Description Required or Optional Available Version
isReadByMe Boolean Specifies to mark the feed element as read (true) for the context user. Required 40.0
Response body for PATCH
Batch Results

If the feed element doesn’t support this capability, the response is 404: Not Found.