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| Name | Description | Type | Additional 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": "2435adce-c1e1-44ff-99eb-4081676f6f6f",
"ContactId": "3dc6030a-5873-423f-8109-ea94ad63b92a",
"Offering": "6a32f2ed-a93a-467e-83e9-1c7ccc23984b",
"EmailAddress": "sample string 1",
"EOSId": "sample string 2",
"Origin": 1,
"FirstName": "sample string 3",
"LastName": "sample string 4",
"CrmContactId": "c28a3de8-6f32-45d8-ab60-0f0c37af397b",
"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>c28a3de8-6f32-45d8-ab60-0f0c37af397b</CrmContactId> <CrmEntityType>sample string 5</CrmEntityType> <ContactId>3dc6030a-5873-423f-8109-ea94ad63b92a</ContactId> <EOSId>sample string 2</EOSId> <EmailAddress>sample string 1</EmailAddress> <FirstName>sample string 3</FirstName> <LastName>sample string 4</LastName> <Offering>6a32f2ed-a93a-467e-83e9-1c7ccc23984b</Offering> <OpportunityId>2435adce-c1e1-44ff-99eb-4081676f6f6f</OpportunityId> <Origin>1</Origin> </UWEOOpportunity>
Response Information
Resource Description
The location of the created object
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.