mirror of https://github.com/zulip/zulip.git
apidocs: Move stray message flags description to OpenAPI.
This commit is contained in:
parent
550e43bb9f
commit
78910ec16a
|
@ -21,78 +21,6 @@
|
||||||
|
|
||||||
{generate_api_arguments_table|zulip.yaml|/messages/flags:post}
|
{generate_api_arguments_table|zulip.yaml|/messages/flags:post}
|
||||||
|
|
||||||
## Available flags
|
|
||||||
<div>
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th style="width:30%">Flag</th>
|
|
||||||
<th style="width:70%">Purpose</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><code>read</code></td>
|
|
||||||
<td>
|
|
||||||
Whether the user has read the message. Messages
|
|
||||||
start out unread (except for messages the user
|
|
||||||
themself sent using a non-API client) and can
|
|
||||||
later be marked as read.
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>starred</code></td>
|
|
||||||
<td>Whether the user has <a href="/help/star-a-message">starred this message</a>.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>collapsed</code></td>
|
|
||||||
<td>Whether the user has <a href="/help/collapse-a-message">collapsed this message</a>.</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>mentioned</code></td>
|
|
||||||
<td>
|
|
||||||
Whether the current user
|
|
||||||
<a href="/help/mention-a-user-or-group">was mentioned</a>
|
|
||||||
by this message, either directly or via a user
|
|
||||||
group. Cannot be changed by the user directly, but
|
|
||||||
can change if the message is edited to add/remove
|
|
||||||
a mention of the current user.
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>wildcard_mentioned</code></td>
|
|
||||||
<td>
|
|
||||||
Whether this message contained
|
|
||||||
<a href="/help/mention-a-user-or-group#mention-everyone-on-a-stream">wildcard mention</a>
|
|
||||||
like @**all**. Cannot be changed by the user directly, but
|
|
||||||
can change if the message is edited to add/remove
|
|
||||||
a wildcard mention.
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>has_alert_word</code></td>
|
|
||||||
<td>
|
|
||||||
Whether the message contains any of the current user's
|
|
||||||
<a href="/help/add-an-alert-word">configured alert words</a>.
|
|
||||||
Cannot be changed by the user directly, but
|
|
||||||
can change if the message is edited to add/remove
|
|
||||||
one of the current user's alert words.
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><code>historical</code></td>
|
|
||||||
<td>
|
|
||||||
True for messages that the user did not receive
|
|
||||||
at the time they were sent but later was added to
|
|
||||||
the user's history (E.g. because they starred or
|
|
||||||
reacted to a message sent to a public stream
|
|
||||||
before they subscribed to that stream). Cannot be
|
|
||||||
changed by the user directly.
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
{generate_parameter_description(/messages/flags:post)}
|
{generate_parameter_description(/messages/flags:post)}
|
||||||
|
|
||||||
## Response
|
## Response
|
||||||
|
|
|
@ -4598,6 +4598,79 @@ paths:
|
||||||
For updating the `read` flag on common collections of messages, see also
|
For updating the `read` flag on common collections of messages, see also
|
||||||
the
|
the
|
||||||
[special endpoints for marking message as read in bulk](/api/mark-all-as-read).
|
[special endpoints for marking message as read in bulk](/api/mark-all-as-read).
|
||||||
|
x-parameter-description: |
|
||||||
|
## Available flags
|
||||||
|
<div>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width:30%">Flag</th>
|
||||||
|
<th style="width:70%">Purpose</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><code>read</code></td>
|
||||||
|
<td>
|
||||||
|
Whether the user has read the message. Messages
|
||||||
|
start out unread (except for messages the user
|
||||||
|
themself sent using a non-API client) and can
|
||||||
|
later be marked as read.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>starred</code></td>
|
||||||
|
<td>Whether the user has <a href="/help/star-a-message">starred this message</a>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>collapsed</code></td>
|
||||||
|
<td>Whether the user has <a href="/help/collapse-a-message">collapsed this message</a>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>mentioned</code></td>
|
||||||
|
<td>
|
||||||
|
Whether the current user
|
||||||
|
<a href="/help/mention-a-user-or-group">was mentioned</a>
|
||||||
|
by this message, either directly or via a user
|
||||||
|
group. Cannot be changed by the user directly, but
|
||||||
|
can change if the message is edited to add/remove
|
||||||
|
a mention of the current user.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>wildcard_mentioned</code></td>
|
||||||
|
<td>
|
||||||
|
Whether this message contained
|
||||||
|
<a href="/help/mention-a-user-or-group#mention-everyone-on-a-stream">wildcard mention</a>
|
||||||
|
like @**all**. Cannot be changed by the user directly, but
|
||||||
|
can change if the message is edited to add/remove
|
||||||
|
a wildcard mention.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>has_alert_word</code></td>
|
||||||
|
<td>
|
||||||
|
Whether the message contains any of the current user's
|
||||||
|
<a href="/help/add-an-alert-word">configured alert words</a>.
|
||||||
|
Cannot be changed by the user directly, but
|
||||||
|
can change if the message is edited to add/remove
|
||||||
|
one of the current user's alert words.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>historical</code></td>
|
||||||
|
<td>
|
||||||
|
True for messages that the user did not receive
|
||||||
|
at the time they were sent but later was added to
|
||||||
|
the user's history (E.g. because they starred or
|
||||||
|
reacted to a message sent to a public stream
|
||||||
|
before they subscribed to that stream). Cannot be
|
||||||
|
changed by the user directly.
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
parameters:
|
parameters:
|
||||||
- name: messages
|
- name: messages
|
||||||
in: query
|
in: query
|
||||||
|
|
Loading…
Reference in New Issue