Method: users.messages.untrash
ट्रैश से चुने गए मैसेज को हटाता है.
एचटीटीपी अनुरोध
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/untrash
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
userId |
string
उपयोगकर्ता का ईमेल पता. खास वैल्यू me का इस्तेमाल, पुष्टि किए गए उपयोगकर्ता की जानकारी देने के लिए किया जा सकता है.
|
id |
string
ट्रैश से हटाने के लिए मैसेज का आईडी.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य हिस्सा
कामयाब रहने पर, जवाब के मुख्य हिस्से में Message
का एक इंस्टेंस शामिल किया जाता है.
अनुमति देने के दायरे
इनमें से कोई एक OAuth स्कोप ज़रूरी है:
https://mail.google.com/
https://www.googleapis.com/auth/gmail.modify
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया."],[[["Removes a specified message from the trash using the user's email address and the message ID."],["Uses an HTTP POST request with path parameters for user ID and message ID and an empty request body."],["Requires authorization with specific OAuth scopes for Gmail access and modification."],["A successful response returns the message details as a JSON object representing the message."]]],["This describes how to remove a message from the trash in Gmail. A `POST` request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/messages/{id}/untrash`. The `userId` (or `me`) and `id` of the message are specified in the URL's path. The request body must be empty. A successful operation returns a `Message` instance in the response. This action requires either `https://mail.google.com/` or `https://www.googleapis.com/auth/gmail.modify` authorization scopes.\n"]]