Method: spaces.messages.reactions.delete
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחיקת תגובה להודעה. דוגמה לכך מופיעה במאמר מחיקת תגובה.
נדרש אימות משתמש עם אחד מהיקפי ההרשאה הבאים:
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.import
(רווחים במצב ייבוא בלבד)
בקשת HTTP
DELETE https://chat.googleapis.com/v1/{name=spaces/*/messages/*/reactions/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
name |
string
חובה. השם של התגובה שרוצים למחוק. פורמט: spaces/{space}/messages/{message}/reactions/{reaction}
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה הוא אובייקט JSON ריק.
היקפי הרשאה
נדרש אחד מהיקפי ההרשאות הבאים של OAuth:
https://www.googleapis.com/auth/chat.import
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.reactions
מידע נוסף זמין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eDeletes a reaction, specifically unicode emojis, from a message within Google Chat spaces.\u003c/p\u003e\n"],["\u003cp\u003eRequires user authentication and utilizes a DELETE HTTP request with specific path parameters to target the reaction.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful deletion results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is necessary, using one of the specified OAuth scopes for chat import, messages, or message reactions.\u003c/p\u003e\n"]]],["This document outlines the process for deleting a reaction to a message using the Google Chat API. The process involves sending a `DELETE` HTTP request to a specific URL, structured using gRPC Transcoding syntax. The URL includes a required `name` path parameter specifying the reaction to delete. The request body must be empty. A successful operation returns an empty JSON object. Authorization requires one of three listed OAuth scopes. The action only supports unicode emojis.\n"],null,["# Method: spaces.messages.reactions.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions).\n\nRequires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):\n\n- `https://www.googleapis.com/auth/chat.messages.reactions`\n- `https://www.googleapis.com/auth/chat.messages`\n- `https://www.googleapis.com/auth/chat.import` (import mode spaces only)\n\n### HTTP request\n\n`DELETE https://chat.googleapis.com/v1/{name=spaces/*/messages/*/reactions/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Name of the reaction to delete. Format: `spaces/{space}/messages/{message}/reactions/{reaction}` |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/chat.import`\n- `https://www.googleapis.com/auth/chat.messages`\n- `https://www.googleapis.com/auth/chat.messages.reactions`\n\nFor more information, see the [Authorization guide](/workspace/chat/authenticate-authorize)."]]