Method: users.threads.untrash
הסרת השרשור שצוין מהאשפה. בנוסף, כל ההודעות ששייכות לשרשור יוסרו מהאשפה.
בקשת HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/untrash
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד me כדי לציין את המשתמש המאומת.
|
id |
string
מזהה השרשור להסרה מהאשפה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Thread
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של OAuth:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-05 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-05 (שעון UTC)."],[[["Removes a specified thread and its associated messages from the trash."],["Requires the user's email address (`userId`) and the thread ID (`id`) as path parameters."],["Uses an empty request body and returns a `Thread` object upon successful completion."],["Needs authorization with specific OAuth scopes like `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.modify`."]]],["This document outlines the process of removing a thread from the trash in Gmail. The core action is an HTTP POST request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/untrash`. Key information includes: `userId` and `id` as path parameters, where `me` represents the authenticated user and `id` is the thread ID. The request body must be empty. A successful operation returns a `Thread` object in the response body. It requires specific OAuth scopes for authorization, such as `https://mail.google.com/`.\n"]]