REST Resource: users.threads
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: थ्रेड
बातचीत में शामिल मैसेज का कलेक्शन.
JSON के काेड में दिखाना |
{
"id": string,
"snippet": string,
"historyId": string,
"messages": [
{
object (Message )
}
]
} |
फ़ील्ड |
id |
string
थ्रेड का यूनीक आईडी.
|
snippet |
string
मैसेज के टेक्स्ट का छोटा हिस्सा.
|
historyId |
string
इस थ्रेड में बदलाव करने वाले, इतिहास के आखिरी रिकॉर्ड का आईडी.
|
messages[] |
object (Message )
थ्रेड में मौजूद मैसेज की सूची.
|
तरीके |
|
चुनी गई थ्रेड को तुरंत और हमेशा के लिए मिटा देता है. |
|
बताई गई थ्रेड को दिखाता है. |
|
उपयोगकर्ता के मेलबॉक्स में मौजूद थ्रेड की सूची बनाता है. |
|
थ्रेड पर लागू किए गए लेबल में बदलाव करता है. |
|
चुनी गई थ्रेड को ट्रैश में ले जाता है. |
|
चुनी गई थ्रेड को ट्रैश से हटाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]