Method: users.settings.sendAs.patch
תיקון הכינוי שצוין לשליחה.
בקשת HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
userId |
string
זוהי כתובת האימייל של המשתמש. ניתן להשתמש בערך המיוחד 'me' כדי לציין את המשתמש המאומת.
|
sendAsEmail |
string
הכינוי 'שלח בתור' שיש לעדכן.
|
גוף הבקשה
גוף הבקשה מכיל מופע של SendAs
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של SendAs
.
היקפי הרשאות
כדי להשתמש בתכונה הזו יש צורך באחד מההיקפים הבאים של 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)."],[[["This document outlines how to update a specific send-as alias in Gmail using the PATCH method."],["It involves providing the user's email address and the target send-as alias as path parameters."],["The request should include a `SendAs` object in the body and requires specific authorization scopes."],["A successful response will contain an updated `SendAs` object."]]],["This document outlines the process to update a specified send-as alias within Gmail settings. A `PATCH` request is sent to `https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}`, using the user's email and the alias to be updated as path parameters. The request body includes the updated `SendAs` instance, while a successful response returns the modified `SendAs` instance. Authorization requires specific OAuth scopes: `gmail.settings.basic` or `gmail.settings.sharing`.\n"]]