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。
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空の JSON オブジェクトになります。
認可スコープ
以下のいずれかの 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 および関連会社の登録商標です。
最終更新日 2025-03-14 UTC。
[null,null,["最終更新日 2025-03-14 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"]]