- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates the email preferences for a Merchant Center account user. MCA users should specify the MCA account rather than a sub-account of the MCA.
Preferences which are not explicitly selected in the update mask will not be updated.
It is invalid for updates to specify an UNCONFIRMED opt-in status value.
Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user.
HTTP request
PATCH https://merchantapi.googleapis.com/accounts/v1beta/{emailPreferences.name=accounts/*/users/*/emailPreferences}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
email |
Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user. |
Query parameters
Parameters | |
---|---|
update |
Required. List of fields being updated. The following fields are supported (in both
|
Request body
The request body contains an instance of EmailPreferences
.
Response body
If successful, the response body contains an instance of EmailPreferences
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.