Method: users.threads.untrash
指定したスレッドをゴミ箱から削除します。そのスレッドに属するメッセージもすべてゴミ箱から削除されます。
HTTP リクエスト
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/threads/{id}/untrash
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
userId |
string
ユーザーのメールアドレス。特別な値 me を使用すると、認証済みユーザーを示すことができます。
|
id |
string
ゴミ箱から削除するスレッドの ID。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には Thread
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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"]]