Method: partners.opportunities.patch
Stay organized with collections
Save and categorize content based on your preferences.
Updates an Opportunity for a Partner.
HTTP request
PATCH https://cloudcrmpartners.googleapis.com/v1/{opportunity.name=partners/*/opportunities/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
opportunity.name |
string
Format: partners/{partner_id}/opportunities/{opportunity_id}
|
Query parameters
Parameters |
updateMask |
string (FieldMask format)
The update mask applies to the resource. This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo" .
|
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/cloudcrmpartners
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-24 UTC."],[[["\u003cp\u003eThis operation updates an existing Opportunity for a Partner using an HTTP PATCH request.\u003c/p\u003e\n"],["\u003cp\u003eThe request should be sent to \u003ccode\u003ehttps://cloudcrmpartners.googleapis.com/v1/{opportunity.name=partners/*/opportunities/*}\u003c/code\u003e with necessary path and query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eOpportunity\u003c/code\u003e object specifying the fields to be updated, while the response, if successful, also contains an \u003ccode\u003eOpportunity\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloudcrmpartners\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: partners.opportunities.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates an Opportunity for a Partner.\n\n### HTTP request\n\n`PATCH https://cloudcrmpartners.googleapis.com/v1/{opportunity.name=partners/*/opportunities/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------------------|-----------------------------------------------------------------------|\n| `opportunity.``name` | `string` Format: partners/{partner_id}/opportunities/{opportunity_id} |\n\n### Query parameters\n\n| Parameters ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `update``Mask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` The update mask applies to the resource. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [Opportunity](/cloud-crm-partners/reference/rest/v1/partners.opportunities#Opportunity).\n\n### Response body\n\nIf successful, the response body contains an instance of [Opportunity](/cloud-crm-partners/reference/rest/v1/partners.opportunities#Opportunity).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloudcrmpartners`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]