PATCH /v1/users/{usersId}/spaces/{spacesId}/spaceReadState
Updates a user's read state within a space, used to identify read and unread messages. For an example, see Update a user's space read state. Requires user authentication with the authorization scope: - https://www.googleapis.com/auth/chat.users.readstate
Request
- Base URLhttps://chat.googleapis.com
- URLhttps://chat.googleapis.com/v1/users/{usersId}/spaces/{spacesId}/spaceReadState
- AuthOAuth 2 and OAuth 2Implicit: https://accounts.google.com/o/oauth2/authScopes: https://www.googleapis.com/auth/chat.users.readstateAuthorization code: https://accounts.google.com/o/oauth2/authToken URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/chat.users.readstate
Path parameters
Query parameters
Required. The field paths to update. Currently supported field paths: - last_read_time When the last_read_time is before the latest message create time, the space appears as unread in the UI. To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.
Request body
Response
Successful response
Changes
No recorded changes to this operation across all 9 revisions of this API.