[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["\u003cp\u003eThis webpage details how to update an existing Opportunity resource, including its specific behavior based on its current status (\u003ccode\u003eDRAFT\u003c/code\u003e, \u003ccode\u003eREJECTED\u003c/code\u003e, \u003ccode\u003eSUBMITTED\u003c/code\u003e, or \u003ccode\u003eACCEPTED\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eUpdating an Opportunity involves sending a \u003ccode\u003ePATCH\u003c/code\u003e request to a specific URL with the opportunity's name, and the URL uses gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe update requires specifying a list of fields to update via the \u003ccode\u003eupdateMask\u003c/code\u003e query parameter, as well as the option to specify a \u003ccode\u003epartner\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body contains an instance of an Opportunity, and a successful update returns the updated Opportunity resource.\u003c/p\u003e\n"],["\u003cp\u003eUpdating an Opportunity requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/apps.order\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: 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 existing [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity) resource.\n\n- `DRAFT`/`REJECTED`: All fields for a `DRAFT` or `REJECTED` Opportunity can be edited.\n- `SUBMITTED`: You can't make further updates to a `SUBMITTED` Opportunity.\n- `ACCEPTED`: You can update some, but not all, of the fields for an `ACCEPTED` opportunity.\n\nPossible error codes:\n\n- PERMISSION_DENIED: The user making the request isn't allowed to update the opportunity.\n- INVALID_ARGUMENT: Required request parameters are missing or invalid.\n- NOT_FOUND: No [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity) resource found for the name in the request.\n\nReturn value: The updated [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity) resource.\n\n### HTTP request\n\n`PATCH https://cloudchannel.googleapis.com/v1alpha1/{opportunity.name=opportunities/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity).\n\n### Response body\n\nIf successful, the response body contains an instance of [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/apps.order`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]