REST Resource: users.threads
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Thread
JSON 表現 |
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
フィールド |
id |
string
スレッドの一意の ID。
|
snippet |
string
メッセージ テキストの短い部分。
|
historyId |
string
このスレッドを最後に変更した履歴レコードの ID。
|
messages[] |
object (Message )
スレッド内のメッセージのリスト。
|
メソッド |
|
指定されたスレッドを即座に完全に削除します。 |
|
指定したスレッドを取得します。 |
|
ユーザーのメールボックス内のスレッドを一覧表示します。 |
|
スレッドに適用されているラベルを変更します。 |
|
指定されたスレッドをゴミ箱に移動します。 |
|
指定されたスレッドをゴミ箱から削除します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# REST Resource: users.threads\n\n- [Resource: Thread](#Thread)\n - [JSON representation](#Thread.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Thread\n----------------\n\nA collection of messages representing a conversation.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"snippet\": string, \"historyId\": string, \"messages\": [ { object (/workspace/gmail/api/reference/rest/v1/users.messages#Message) } ] } ``` |\n\n| Fields ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` The unique ID of the thread. |\n| `snippet` | `string` A short part of the message text. |\n| `historyId` | `string` The ID of the last history record that modified this thread. |\n| `messages[]` | `object (`[Message](/workspace/gmail/api/reference/rest/v1/users.messages#Message)`)` The list of messages in the thread. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------|-----------------------------------------------------------|\n| ### [delete](/workspace/gmail/api/reference/rest/v1/users.threads/delete) | Immediately and permanently deletes the specified thread. |\n| ### [get](/workspace/gmail/api/reference/rest/v1/users.threads/get) | Gets the specified thread. |\n| ### [list](/workspace/gmail/api/reference/rest/v1/users.threads/list) | Lists the threads in the user's mailbox. |\n| ### [modify](/workspace/gmail/api/reference/rest/v1/users.threads/modify) | Modifies the labels applied to the thread. |\n| ### [trash](/workspace/gmail/api/reference/rest/v1/users.threads/trash) | Moves the specified thread to the trash. |\n| ### [untrash](/workspace/gmail/api/reference/rest/v1/users.threads/untrash) | Removes the specified thread from the trash. |"]]