- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Updates a Product
.
HTTP request
PATCH https://retail.googleapis.com/v2alpha/{product.name=projects/*/locations/*/catalogs/*/branches/*/products/**}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
product.name |
Immutable. Full resource name of the product, such as |
Query parameters
Parameters | |
---|---|
updateMask |
Indicates which fields in the provided If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update. This is a comma-separated list of fully qualified names of fields. Example: |
allowMissing |
If set to true, and the |
Request body
The request body contains an instance of Product
.
Response body
If successful, the response body contains an instance of Product
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
retail.products.update
For more information, see the IAM documentation.