gmail.users.settings.sendAs.smimeInfo.insert
Uploads an S/MIME certificate configuration for a Gmail send-as alias, requiring a PKCS#12 key, so the alias can sign or encrypt mail.
Instructions
Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key. For more information, see Manage S/MIME certificates with the Gmail API [HTTP POST] — creates or triggers a change; refused under --readonly safety profiles. Returns the API's response resource as JSON — request body is a JSON SmimeInfo object accepting encryptedKeyPassword, expiration, id, isDefault, issuerCn, pem, pkcs12; pass it via params or whole via body_file Siblings over the same resource: delete, get, list, setDefault.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| userId | Yes | [URL path segment] The user's email address. The special value `me` can be used to indicate the authenticated user. | me |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. The body is a JSON SmimeInfo object. | |
| sendAsEmail | Yes | [URL path segment] The email address that appears in the "From:" header for mail sent using this alias. | |
| request_body | No | Request body of type SmimeInfo: pass it via `params` (merged into the built body) or whole via `body_file`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| pem | No | ||
| pkcs12 | No | ||
| issuerCn | No | ||
| isDefault | No | ||
| expiration | No | ||
| encryptedKeyPassword | No |