Creates a new Opportunity resource for a deal submission process. This can have the state DRAFT or SUBMITTED. Creating a SUBMITTED opportunity initiates an offline review process, in which Google determines whether it's ACCEPTED or REJECTED.
Possible error codes:
PERMISSION_DENIED: The user making the request isn't allowed to create an opportunity.
INVALID_ARGUMENT: Required request parameters are missing or invalid.
Return value: The newly created Opportunity resource.
HTTP request
POST https://cloudchannel.googleapis.com/v1alpha1/opportunities
[[["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 endpoint creates a new Opportunity resource, which can be in either \u003ccode\u003eDRAFT\u003c/code\u003e or \u003ccode\u003eSUBMITTED\u003c/code\u003e state.\u003c/p\u003e\n"],["\u003cp\u003eSubmitting an opportunity in the \u003ccode\u003eSUBMITTED\u003c/code\u003e state triggers an offline review process by Google to determine if it's \u003ccode\u003eACCEPTED\u003c/code\u003e or \u003ccode\u003eREJECTED\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires an Opportunity instance, and a successful response will also contain the newly created Opportunity instance.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint uses a POST request to the specified URL, \u003ccode\u003ehttps://cloudchannel.googleapis.com/v1alpha1/opportunities\u003c/code\u003e, using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eCreating an opportunity requires the \u003ccode\u003ehttps://www.googleapis.com/auth/apps.order\u003c/code\u003e OAuth scope, and potential errors include \u003ccode\u003ePERMISSION_DENIED\u003c/code\u003e or \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: opportunities.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity) resource for a deal submission process. This can have the state `DRAFT` or `SUBMITTED`. Creating a `SUBMITTED` opportunity initiates an offline review process, in which Google determines whether it's `ACCEPTED` or `REJECTED`.\n\nPossible error codes:\n\n- PERMISSION_DENIED: The user making the request isn't allowed to create an opportunity.\n- INVALID_ARGUMENT: Required request parameters are missing or invalid.\n\nReturn value: The newly created [Opportunity](/channel/docs/reference/rest/v1alpha1/opportunities#Opportunity) resource.\n\n### HTTP request\n\n`POST https://cloudchannel.googleapis.com/v1alpha1/opportunities`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\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 a newly created 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)."]]