Method: users.settings.sendAs.smimeInfo.setDefault
מגדיר את הגדרת ברירת המחדל של S/MIME לכינוי שצוין לשליחה.
בקשת HTTP
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault
בכתובת ה-URL נעשה שימוש בתחביר המרת 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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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"]]