Updates the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.
HTTP request
POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products/{productId}/regionalinventory
Path parameters
Parameters
merchantId
string
The ID of the account that contains the product. This account cannot be a multi-client account.
productId
string
The REST ID of the product for which to update the regional inventory.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eUpdates the regional inventory of a product in your Merchant Center account, updating existing entries with the same region ID.\u003c/p\u003e\n"],["\u003cp\u003eRequires a POST request to a specific endpoint, including merchant ID and product ID as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a request body containing a \u003ccode\u003eRegionalInventory\u003c/code\u003e instance to specify the inventory details.\u003c/p\u003e\n"],["\u003cp\u003eReturns a \u003ccode\u003eRegionalInventory\u003c/code\u003e instance in the response body upon successful update.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This describes how to update a product's regional inventory within a Merchant Center account. The process involves sending a POST request to a specific URL using the `merchantId` and `productId` as path parameters. The request body requires `RegionalInventory` data. A successful request returns a new `RegionalInventory` instance in the response body. The operation requires the `https://www.googleapis.com/auth/content` OAuth scope for authorization. It should be noted that the `merchantId` can not be a multi-client account.\n"],null,["# Method: regionalinventory.insert\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.\n\n### HTTP request\n\n`POST https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/products/{productId}/regionalinventory`\n\n### Path parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------|\n| `merchantId` | `string` The ID of the account that contains the product. This account cannot be a multi-client account. |\n| `productId` | `string` The [REST ID](/shopping-content/v2/reference/v2.1/products#id) of the product for which to update the regional inventory. |\n\n### Request body\n\nThe request body contains an instance of [RegionalInventory](/shopping-content/reference/rest/v2.1/regionalinventory#RegionalInventory).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [RegionalInventory](/shopping-content/reference/rest/v2.1/regionalinventory#RegionalInventory).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/content`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]