[null,null,["Last updated 2025-02-25 UTC."],[[["\u003cp\u003eUpdates local inventory for multiple products or stores with a single \u003ccode\u003ePOST\u003c/code\u003e request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/content\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a \u003ccode\u003eLocalinventoryCustomBatchRequest\u003c/code\u003e object with entries for each product or store update.\u003c/p\u003e\n"],["\u003cp\u003eEach entry specifies the desired action (\u003ccode\u003einsert\u003c/code\u003e), merchant ID, product ID, and local inventory data.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of entries with the results of each update, including any errors encountered.\u003c/p\u003e\n"]]],["This API updates local inventory for multiple products or stores via a batch request. A `POST` request is sent to `https://shoppingcontent.googleapis.com/content/v2.1/localinventory/batch` with a `LocalinventoryCustomBatchRequest` body containing entries for each update. Each entry includes a unique `batchId`, `merchantId`, `productId`, the `method` which should be `insert`, and the `localInventory` to be updated. The response, `LocalinventoryCustomBatchResponse`, contains entries reflecting each request's result, including any `errors`. Authorization requires the `https://www.googleapis.com/auth/content` OAuth scope.\n"],null,["# Method: localinventory.custombatch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.LocalinventoryCustomBatchResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [LocalinventoryCustomBatchRequest](#LocalinventoryCustomBatchRequest)\n - [JSON representation](#LocalinventoryCustomBatchRequest.SCHEMA_REPRESENTATION)\n- [LocalinventoryCustomBatchRequestEntry](#LocalinventoryCustomBatchRequestEntry)\n - [JSON representation](#LocalinventoryCustomBatchRequestEntry.SCHEMA_REPRESENTATION)\n- [LocalinventoryCustomBatchResponseEntry](#LocalinventoryCustomBatchResponseEntry)\n - [JSON representation](#LocalinventoryCustomBatchResponseEntry.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nUpdates local inventory for multiple products or stores in a single request.\n\n### HTTP request\n\n`POST https://shoppingcontent.googleapis.com/content/v2.1/localinventory/batch`\n\n### Request body\n\nThe request body contains an instance of [LocalinventoryCustomBatchRequest](/shopping-content/reference/rest/v2.1/localinventory/custombatch#LocalinventoryCustomBatchRequest).\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"entries\": [ { object (/shopping-content/reference/rest/v2.1/localinventory/custombatch#LocalinventoryCustomBatchResponseEntry) } ], \"kind\": string } ``` |\n\n| Fields ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entries[]` | `object (`[LocalinventoryCustomBatchResponseEntry](/shopping-content/reference/rest/v2.1/localinventory/custombatch#LocalinventoryCustomBatchResponseEntry)`)` The result of the execution of the batch requests. |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#localinventoryCustomBatchResponse`\". |\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).\n\nLocalinventoryCustomBatchRequest\n--------------------------------\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"entries\": [ { object (/shopping-content/reference/rest/v2.1/localinventory/custombatch#LocalinventoryCustomBatchRequestEntry) } ] } ``` |\n\n| Fields ||\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `entries[]` | `object (`[LocalinventoryCustomBatchRequestEntry](/shopping-content/reference/rest/v2.1/localinventory/custombatch#LocalinventoryCustomBatchRequestEntry)`)` The request entries to be processed in the batch. |\n\nLocalinventoryCustomBatchRequestEntry\n-------------------------------------\n\nBatch entry encoding a single local inventory update request.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"batchId\": integer, \"merchantId\": string, \"method\": string, \"productId\": string, \"localInventory\": { object (/shopping-content/reference/rest/v2.1/localinventory#LocalInventory) } } ``` |\n\n| Fields ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `batchId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` An entry ID, unique within the batch request. |\n| `merchantId` | `string` The ID of the managing account. |\n| `method` | `string` Method of the batch request entry. Acceptable values are: - \"`insert`\" \u003cbr /\u003e |\n| `productId` | `string` The ID of the product for which to update local inventory. |\n| `localInventory` | `object (`[LocalInventory](/shopping-content/reference/rest/v2.1/localinventory#LocalInventory)`)` Local inventory of the product. |\n\nLocalinventoryCustomBatchResponseEntry\n--------------------------------------\n\nBatch entry encoding a single local inventory update response.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------|\n| ``` { \"batchId\": integer, \"errors\": { object (/shopping-content/reference/rest/v2.1/Errors) }, \"kind\": string } ``` |\n\n| Fields ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `batchId` | `integer (`[uint32](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the request entry this entry responds to. |\n| `errors` | `object (`[Errors](/shopping-content/reference/rest/v2.1/Errors)`)` A list of errors for failed custombatch entries. | **Note:** Schema errors fail the whole request. \u003cbr /\u003e |\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string \"`content#localinventoryCustomBatchResponseEntry`\" |"]]