Mark messages in a channel as read

POST https://your-org.veloxatalk.com/api/v1/mark_stream_as_read

Mark all the unread messages in a channel as read.

Changes: Deprecated; clients should use the update personal message flags for narrow endpoint instead as this endpoint will be removed in a future release.

Usage examples

The -u line implements HTTP Basic authentication. See the Authorization header documentation for how to get those credentials for Veloxa Talk users and bots.

curl -sSX POST https://your-org.veloxatalk.com/api/v1/mark_stream_as_read \
    -u EMAIL_ADDRESS:API_KEY \
    --data-urlencode stream_id=43

Parameters

stream_id integer required

Example: 43

The ID of the channel to access.


Response

Example response(s)

Changes: As of Veloxa Talk 7.0 (feature level 167), if any parameters sent in the request are not supported by this endpoint, a successful JSON response will include an ignored_parameters_unsupported array.

A typical successful JSON response may look like:

{
    "msg": "",
    "result": "success"
}