mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
api-docs: Update "presences" object description in register response.
Updates the description for `slim_presence` parameter as it relates to the `presences` object that's returned in the response. Adds the modern format for the `presences` object in the response as that is what will be returned when the parameter above is True.
This commit is contained in:
committed by
Tim Abbott
parent
d66ee33859
commit
ae4ba8761c
@@ -12970,10 +12970,11 @@ paths:
|
||||
example: true
|
||||
slim_presence:
|
||||
description: |
|
||||
Setting this to `true` will make presence dictionaries be keyed by
|
||||
user ID instead of Zulip API email.
|
||||
If `true`, the `presences` object returned in the response will be keyed
|
||||
by user ID and the entry for each user's presence data will be in the
|
||||
modern format.
|
||||
|
||||
**Changes**: New in Zulip 3.0 (Unstable with no feature level yet).
|
||||
**Changes**: New in Zulip 3.0 (no feature level; API unstable).
|
||||
type: boolean
|
||||
default: false
|
||||
example: true
|
||||
@@ -13439,15 +13440,23 @@ paths:
|
||||
A dictionary where each entry describes the presence details of a
|
||||
user in the Zulip organization.
|
||||
|
||||
The format of the entry (modern or legacy) depends on the value of
|
||||
[`slim_presence`](#parameter-slim_presence).
|
||||
|
||||
Users who have been offline for multiple weeks may not appear in this object.
|
||||
additionalProperties:
|
||||
type: object
|
||||
description: |
|
||||
`{user_id}` or `{user_email}`: Object containing the details of a user's
|
||||
presence . Depending on the value of `slim_presence`, the object's key is
|
||||
either the user's ID or the user's Zulip API email.
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/LegacyPresenceFormat"
|
||||
Will be one of these two formats (modern or legacy) for user
|
||||
presence data:
|
||||
oneOf:
|
||||
- $ref: "#/components/schemas/ModernPresenceFormat"
|
||||
- type: object
|
||||
description: |
|
||||
`{user_email}`: Presence data (legacy format) for the user with
|
||||
the specified Zulip API email.
|
||||
additionalProperties:
|
||||
$ref: "#/components/schemas/LegacyPresenceFormat"
|
||||
presence_last_update_id:
|
||||
type: integer
|
||||
description: |
|
||||
|
||||
Reference in New Issue
Block a user