Method: accounts.lfpInventories.insert
Wstawia zasób LfpInventory
dla podanego docelowego konta sprzedawcy. Jeśli zasób już istnieje, zostanie zastąpiony. Asortyment wygasa automatycznie po 30 dniach.
Żądanie HTTP
POST https://merchantapi.googleapis.com/lfp/v1beta/{parent=accounts/*}/lfpInventories:insert
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Wymagane. Konto dostawcy danych o asortymencie lokalnym. Format: accounts/{account}
|
Treść żądania
Treść żądania zawiera wystąpienie elementu LfpInventory
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu LfpInventory
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/content
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-23 UTC.
[null,null,["Ostatnia aktualizacja: 2025-01-23 UTC."],[[["Inserts or replaces an `LfpInventory` resource for a given merchant account, with automatic 30-day expiration."],["Uses a POST request to the specified URL with path parameter indicating the target account."],["Requires an `LfpInventory` object in the request body and returns the same in the response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This describes the process of inserting a `LfpInventory` resource for a merchant account via an HTTP POST request. The request URL includes a required `parent` path parameter specifying the provider account. The request body must contain an `LfpInventory` instance, and a successful response also returns an `LfpInventory` instance. The process utilizes gRPC Transcoding, and requires the `https://www.googleapis.com/auth/content` OAuth scope for authorization. Existing resources will be replaced, and inventories expire after 30 days.\n"]]