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 قبل وقت إنشاء آخر رسالة، تظهر المساحة كغير مقروءة في واجهة المستخدم. لوضع علامة "مقروءة" على المساحة، اضبط lastReadTime على أي قيمة بعد (أكبر) من وقت إنشاء آخر رسالة. تم إجبار lastReadTime على مطابقة أحدث وقت لإنشاء رسالة. يُرجى العِلم بأنّ حالة القراءة في المساحة لا تؤثّر إلا في حالة قراءة الرسائل التي تظهر في المحادثة ذات المستوى الأعلى في المساحة. لا تتأثر الردود في سلاسل المحادثات بهذا الطابع الزمني، ويتم الاعتماد عليها بدلاً من ذلك على حالة قراءة سلسلة المحادثات.
|
نص الطلب
يحتوي نص الطلب على مثال SpaceReadState
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال SpaceReadState
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/chat.users.readstate
لمزيد من المعلومات، يُرجى الاطّلاع على دليل التفويض.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-02-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-02-27 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]