Note that, when adding the read flag to messages, clients should
consider including a narrow with the is:unread filter as an
optimization. Including that filter takes advantage of the fact that
the server has a database index for unread messages.
Changes: See changes section
of search/narrow filter documentation.
The number of messages that were within the
update range (at most num_before + 1 +
num_after).
updated_count: integer
The number of messages where the flag's
value was changed (at most
processed_count).
first_processed_id: integer | null
The ID of the oldest message within the
update range, or null if the range was
empty.
last_processed_id: integer | null
The ID of the newest message within the
update range, or null if the range was
empty.
found_oldest: boolean
Whether the update range reached backward
far enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
first_processed_id).
found_newest: boolean
Whether the update range reached forward far
enough to include very oldest message
matching the narrow (used by clients doing a
bulk update to decide whether to issue
another request anchored at
last_processed_id).
Example response(s)
Changes: As of Zulip 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.