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 Transcoding 構文を使用します。
パスパラメータ
パラメータ |
userId |
string
ユーザーのメールアドレス。特別な値 me を使用すると、認証済みユーザーを示すことができます。
|
sendAsEmail |
string
このエイリアスを使用して送信されたメールの「From:」ヘッダーに表示されるメールアドレスです。
|
id |
string
SmimeInfo の不変の ID です。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/gmail.settings.basic
https://www.googleapis.com/auth/gmail.settings.sharing
詳細については、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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"]]