/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}
PATCH
/gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's S/MIME certificate profiles.
Request
Path Params
userId
stringÂ
required
The requester's primary email address. To indicate the authenticated user, you can use the special value me
.
emailAddress
stringÂ
required
The email address of the client-side encryption identity to update.
Body Params application/json
The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.
emailAddress
stringÂ
optional
The email address for the sending identity. The email address must be the primary email address of the authenticated user.
primaryKeyPairId
stringÂ
optional
If a key pair is associated, the identifier of the key pair, CseKeyPair.
Example
Empty Data
Request samples
Responses
Successful response(200)
Successful response
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages.
emailAddress
stringÂ
optional
The email address for the sending identity. The email address must be the primary email address of the authenticated user.
primaryKeyPairId
stringÂ
optional
If a key pair is associated, the identifier of the key pair, CseKeyPair.
Example
{
"emailAddress": "string",
"primaryKeyPairId": "string"
}
Last modified: 2 years ago