- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Updates an existing Opportunity
resource.
DRAFT
/REJECTED
: All fields for aDRAFT
orREJECTED
Opportunity can be edited.SUBMITTED
: You can't make further updates to aSUBMITTED
Opportunity.ACCEPTED
: You can update some, but not all, of the fields for anACCEPTED
opportunity.
Possible error codes:
- PERMISSION_DENIED: The user making the request isn't allowed to update the Opportunity.
- INVALID_ARGUMENT: Required request parameters are missing or invalid.
- NOT_FOUND: No
Opportunity
resource found for the name in the request.
Return value: The updated Opportunity
resource.
HTTP request
PATCH https://cloudchannel.googleapis.com/v1alpha1/{opportunity.name=opportunities/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
opportunity. |
Identifier. Resource name of an Opportunity in the form: opportunities/{opportunity_id}. |
Query parameters
Parameters | |
---|---|
update |
Required. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: |
Request body
The request body contains an instance of Opportunity
.
Response body
If successful, the response body contains an instance of Opportunity
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/apps.order
For more information, see the Authentication Overview.