PATCH /api/groups/:group_id/chat_messages

update last_viewed_at for a group chat stream

Success Response Code: 204

Params

Param name Description
group_id
required

id of the group


Value: Must be a Integer
last_viewed_at
required

time in unix timestamp format at which chat messages were viewed. It is recommended to use the last_interacted_at from the most recent chat message. Times before the current last_viewed_at or in the future will be ignored.


Value: Must be a Integer

Example Curl Commands

curl -X PATCH -d "last_viewed_at=1455129765" -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/groups/12/chat_messages.json