Page Summary
-
This operation uploads or updates Merchant Center account credentials using an HTTP POST request.
-
It requires an
accountIdas a path parameter to specify the merchant account. -
The request body should contain AccountCredentials data, as detailed in the provided link.
-
Successful execution results in a response containing the updated AccountCredentials.
-
Authorization requires the
https://www.googleapis.com/auth/contentscope.
Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/accounts/{accountId}/credentials
Path parameters
| Parameters | |
|---|---|
accountId |
Required. The merchant id of the account these credentials belong to. |
Request body
The request body contains an instance of AccountCredentials.
Response body
If successful, the response body contains a newly created instance of AccountCredentials.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/content
For more information, see the OAuth 2.0 Overview.