Updates the specified discount.
HTTP request
PATCH https://foodorderingaiagent.googleapis.com/v1beta/{discount.name=projects/*/locations/*/brands/*/stores/*/discounts/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
discount.name |
Identifier. The discount name. Format: projects/{project}/locations/{location}/brands/{brand}/stores/{store}/discounts/{discount} |
Query parameters
| Parameters | |
|---|---|
updateMask |
Optional. The list of fields to update This is a comma-separated list of fully qualified names of fields. Example: |
allowMissing |
Optional. If set to true, and the discount is not found, a new discount will be created. In this situation, |
Request body
The request body contains an instance of Discount.
Response body
If successful, the response body contains an instance of Discount.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.