recommendationengine.projects.locations.catalogs.catalog Items.patch
PATCH {{baseUrl}}/v1beta1/:name?updateMask=<string>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&upload_protocol=<string>&uploadType=<string>
Updates a catalog item. Partial updating is supported. Non-existing items will be created.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
updateMask | string | Optional. Indicates which fields in the provided 'item' to update. If not set, will by default update all fields. | |
$.xgafv | string | V1 error format. | |
access_token | string | OAuth access token. | |
alt | string | Data format for response. | |
callback | string | JSONP | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. | |
upload_protocol | string | Upload protocol for media (e.g. "raw", "multipart"). | |
uploadType | string | Legacy upload protocol for media (e.g. "media", "multipart"). |
Request Body
{"categoryHierarchies"=>[{"categories"=>["<string>", "<string>"]}, {"categories"=>["<string>", "<string>"]}], "description"=>"<string>", "id"=>"<string>", "itemAttributes"=>{"categoricalFeatures"=>"<object>", "numericalFeatures"=>"<object>"}, "itemGroupId"=>"<string>", "languageCode"=>"<string>", "productMetadata"=>{"availableQuantity"=>"<int64>", "canonicalProductUri"=>"<string>", "costs"=>"<object>", "currencyCode"=>"<string>", "exactPrice"=>{"displayPrice"=>"<float>", "originalPrice"=>"<float>"}, "images"=>[{"height"=>"<integer>", "uri"=>"<string>", "width"=>"<integer>"}, {"height"=>"<integer>", "uri"=>"<string>", "width"=>"<integer>"}], "priceRange"=>{"max"=>"<float>", "min"=>"<float>"}, "stockState"=>"<string>"}, "tags"=>["<string>", "<string>"], "title"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"categoryHierarchies":[{"categories":["\u003cstring\u003e","\u003cstring\u003e"]},{"categories":["\u003cstring\u003e","\u003cstring\u003e"]}],"description":"\u003cstring\u003e","id":"\u003cstring\u003e","itemAttributes":{"categoricalFeatures":"\u003cobject\u003e","numericalFeatures":"\u003cobject\u003e"},"itemGroupId":"\u003cstring\u003e","languageCode":"\u003cstring\u003e","productMetadata":{"availableQuantity":"\u003cint64\u003e","canonicalProductUri":"\u003cstring\u003e","costs":"\u003cobject\u003e","currencyCode":"\u003cstring\u003e","exactPrice":{"displayPrice":"\u003cfloat\u003e","originalPrice":"\u003cfloat\u003e"},"images":[{"height":"\u003cinteger\u003e","uri":"\u003cstring\u003e","width":"\u003cinteger\u003e"},{"height":"\u003cinteger\u003e","uri":"\u003cstring\u003e","width":"\u003cinteger\u003e"}],"priceRange":{"max":"\u003cfloat\u003e","min":"\u003cfloat\u003e"},"stockState":"\u003cstring\u003e"},"tags":["\u003cstring\u003e","\u003cstring\u003e"],"title":"\u003cstring\u003e"}