POST api/Opportunity

Creates a new opportunity in CRM for the specified program

Request Information

URI Parameters

None.

Body Parameters

The opportunity to be created

UWEOOpportunity
NameDescriptionTypeAdditional information
OpportunityId

globally unique identifier

None.

ContactId

globally unique identifier

None.

Offering

globally unique identifier

None.

EmailAddress

string

None.

EOSId

string

None.

Origin

integer

None.

FirstName

string

None.

LastName

string

None.

CrmContactId

globally unique identifier

None.

CrmEntityType

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "OpportunityId": "008e820e-2704-4870-8d8b-2ae6467db1cd",
  "ContactId": "bb6d5538-0be9-48bd-8810-54fc2138afa5",
  "Offering": "926d6815-e839-4755-a7ad-6ada713e5b71",
  "EmailAddress": "sample string 1",
  "EOSId": "sample string 2",
  "Origin": 1,
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "CrmContactId": "0e9b2bb4-3fd8-4c79-bff4-a2e5d381b2ad",
  "CrmEntityType": "sample string 5"
}

application/xml, text/xml

Sample:
<UWEOOpportunity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UWEO.CRM.API.Base.Models">
  <CrmContactId>0e9b2bb4-3fd8-4c79-bff4-a2e5d381b2ad</CrmContactId>
  <CrmEntityType>sample string 5</CrmEntityType>
  <ContactId>bb6d5538-0be9-48bd-8810-54fc2138afa5</ContactId>
  <EOSId>sample string 2</EOSId>
  <EmailAddress>sample string 1</EmailAddress>
  <FirstName>sample string 3</FirstName>
  <LastName>sample string 4</LastName>
  <Offering>926d6815-e839-4755-a7ad-6ada713e5b71</Offering>
  <OpportunityId>008e820e-2704-4870-8d8b-2ae6467db1cd</OpportunityId>
  <Origin>1</Origin>
</UWEOOpportunity>

Response Information

Resource Description

The location of the created object

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.