Method: users.settings.sendAs.patch
نام مستعار send-as مشخص شده را وصله کنید.
درخواست HTTP
PATCH https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
userId | string آدرس ایمیل کاربر. مقدار ویژه "me" را می توان برای نشان دادن کاربر تأیید شده استفاده کرد. |
sendAsEmail | string نام مستعار send-as به روز می شود. |
درخواست بدن
بدنه درخواست شامل یک نمونه از SendAs
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از SendAs
است.
محدوده مجوز
به یکی از حوزه های 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 و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-09-05 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-09-05 بهوقت ساعت هماهنگ جهانی."],[[["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"]]