POST api/Shared/addOpportunity
Request Information
URI Parameters
None.
Body Parameters
OpportunityDto| Name | Description | Type | Additional information |
|---|---|---|---|
| TenaProductIds | Collection of integer |
None. |
|
| CompareProductIds | integer |
None. |
|
| Notes | string |
None. |
|
| GuidToken | globally unique identifier |
None. |
|
| AccountId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"TenaProductIds": [
1,
2
],
"CompareProductIds": 1,
"Notes": "sample string 2",
"GuidToken": "b6fb7bc9-69ee-4baf-9ff9-ce4950e76945",
"AccountId": 4
}
application/xml, text/xml
Sample:
<OpportunityDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LookBookCoreAPI.Models.Dto">
<AccountId>4</AccountId>
<CompareProductIds>1</CompareProductIds>
<GuidToken>b6fb7bc9-69ee-4baf-9ff9-ce4950e76945</GuidToken>
<Notes>sample string 2</Notes>
<TenaProductIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</TenaProductIds>
</OpportunityDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Opportunity| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| AccountId | integer |
None. |
|
| CompProduct | Product |
None. |
|
| Active | integer |
None. |
|
| Notes | string |
None. |
|
| DateCreated | date |
None. |
|
| CreatedBy | integer |
None. |
|
| TenaProducts | Collection of Product |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.