Method: opportunities.create

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

The URL uses gRPC Transcoding syntax.

Request body

The request body contains an instance of Opportunity.

Response body

If successful, the response body contains a newly created instance of Opportunity.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/apps.order

For more information, see the Authentication Overview.