Method: users.spaces.updateSpaceReadState
HTTP 요청
PATCH https://chat.googleapis.com/v1/{spaceReadState.name=users/*/spaces/*/spaceReadState}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
spaceReadState.name |
string
스페이스 읽기 상태의 리소스 이름입니다. 형식: users/{user}/spaces/{space}/spaceReadState
|
쿼리 매개변수
매개변수 |
updateMask |
string (FieldMask format)
필수 항목입니다. 업데이트할 필드 경로입니다. 현재 지원되는 필드 경로는 다음과 같습니다.
lastReadTime 가 최근 메시지 작성 시간 이전이면 UI에 스페이스가 읽지 않은 상태로 표시됩니다.
스페이스를 읽은 것으로 표시하려면 lastReadTime 를 최신 메시지 생성 시간보다 나중에(더 큰) 발생한 값으로 설정합니다. lastReadTime 는 최근 메시지 생성 시간과 일치하도록 강제 적용됩니다. 스페이스 읽기 상태는 스페이스의 최상위 대화에 표시되는 메시지의 읽기 상태에만 영향을 미칩니다. 대화목록의 답장은 이 타임스탬프의 영향을 받지 않으며 대신 대화목록 읽기 상태를 사용합니다.
|
요청 본문
요청 본문에 SpaceReadState
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 SpaceReadState
의 인스턴스가 포함됩니다.
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/chat.users.readstate
자세한 내용은 승인 가이드를 참고하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-10-23(UTC)
[null,null,["최종 업데이트: 2024-10-23(UTC)"],[[["This API updates a user's read state within a Google Chat space, marking messages as read or unread."],["It requires user authentication and the `chat.users.readstate` OAuth scope for authorization."],["The request uses the PATCH method and specifies the space read state resource name in the URL path."],["You can control which fields to update using the `updateMask` query parameter, such as setting the `lastReadTime` to mark a space as read."],["The request and response bodies utilize the `SpaceReadState` object to represent the user's read state information."]]],[]]