Method: users.settings.sendAs.smimeInfo.setDefault
तय किए गए इस ईमेल पते के लिए, डिफ़ॉल्ट S/MIME कॉन्फ़िगरेशन सेट करता है.
एचटीटीपी अनुरोध
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault
यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ के पैरामीटर
पैरामीटर |
userId |
string
उपयोगकर्ता का ईमेल पता. खास वैल्यू me का इस्तेमाल, पुष्टि किए गए उपयोगकर्ता की जानकारी देने के लिए किया जा सकता है.
|
sendAsEmail |
string
इस उपनाम का इस्तेमाल करके भेजे गए ईमेल के लिए, "भेजने वाला:" हेडर में दिखने वाला ईमेल पता.
|
id |
string
SmimeInfo के लिए बदला न जा सकने वाला आईडी.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब का मुख्य हिस्सा खाली रहता है.
अनुमति देने के दायरे
इनमें से कोई एक OAuth स्कोप ज़रूरी है:
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
ज़्यादा जानकारी के लिए, अनुमति देने से जुड़ी गाइड देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-05 (UTC) को अपडेट किया गया."],[[["Sets the default S/MIME config for a specific send-as alias using an empty request body."],["Requires `userId`, `sendAsEmail`, and `id` as path parameters for the HTTP request."],["Needs authorization with either `https://www.googleapis.com/auth/gmail.settings.basic` or `https://www.googleapis.com/auth/gmail.settings.sharing` scope."],["A successful operation results in an empty response body, indicating the default S/MIME configuration has been set."]]],["This document outlines the process for setting a default S/MIME configuration for a send-as alias in Gmail. The core action is a `POST` request to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault`. This requires three path parameters: `userId`, `sendAsEmail`, and `id`. The request body must be empty, and a successful response also has an empty body. Authorization requires specific OAuth scopes, either `gmail.settings.basic` or `gmail.settings.sharing`.\n"]]