Okunmuş ve okunmamış mesajları tanımlamak için kullanılan, kullanıcının bir alandaki okunma durumunu günceller. Örnek için Kullanıcıların alan okuma durumunu güncelleme başlıklı makaleyi inceleyin.
Zorunlu. Güncellenecek alan yolları. Şu anda desteklenen alan yolları:
lastReadTime
lastReadTime, en son mesajın oluşturulduğu zamandan önceyse alan kullanıcı arayüzünde okunmamış olarak görünür.
Alanı okunmuş olarak işaretlemek için lastReadTime öğesini, en son mesajın oluşturulduğu zamandan sonraki bir değere (daha büyük) ayarlayın. lastReadTime, en son mesajın oluşturulduğu zamanla eşleşecek şekilde zorlanacaktır. Alanın okunma durumunun yalnızca alanın üst düzey ileti dizisinde görünen mesajların okunma durumunu etkilediğini unutmayın. Mesaj dizilerindeki yanıtlar bu zaman damgasından etkilenmez ve bunun yerine ileti dizisinin okunma durumuna bağlıdır.
İstek içeriği
İstek metni, SpaceReadState öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, SpaceReadState öğesinin bir örneğini içerir.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-05-07 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."]]],["This outlines updating a user's read state in a space using a PATCH request to `https://chat.googleapis.com/v1/{spaceReadState.name=users/*/spaces/*/spaceReadState}`. Key components include specifying the `spaceReadState.name` in the path, updating the `lastReadTime` via the `updateMask` query parameter, and providing a `SpaceReadState` instance in the request body. The response, if successful, returns a `SpaceReadState` instance. This operation requires user authentication and the `https://www.googleapis.com/auth/chat.users.readstate` authorization scope.\n"]]