POST api/Opportunity/OpportunitySelectionProduct

Request Information

URI Parameters

None.

Body Parameters

Collection of OpportunitySelectionProduct
NameDescriptionTypeAdditional information
PriceListItemId

globally unique identifier

None.

Name

string

None.

Selected

boolean

None.

OpportunityProductId

globally unique identifier

None.

OpportunityId

globally unique identifier

None.

Subject

string

None.

ProductId

globally unique identifier

None.

Quantity

decimal number

None.

Note

string

None.

Cost

decimal number

None.

SelectionParentId

globally unique identifier

None.

SelectionParentName

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PriceListItemId": "e797a8bd-4001-46cf-94f4-c53b001b45e2",
    "Name": "sample string 2",
    "Selected": true,
    "OpportunityProductId": "92a7e005-c561-453a-9a4b-2fe4669ff52f",
    "OpportunityId": "08d05125-2735-408c-ad55-a35ff9cfaf11",
    "Subject": "sample string 5",
    "ProductId": "9036cd9e-3e46-46e4-ab29-bbe8bee0d0a2",
    "Quantity": 7.0,
    "Note": "sample string 8",
    "Cost": 9.0,
    "SelectionParentId": "bac01f60-a0f0-4896-b321-ba558816c533",
    "SelectionParentName": "sample string 11"
  },
  {
    "PriceListItemId": "e797a8bd-4001-46cf-94f4-c53b001b45e2",
    "Name": "sample string 2",
    "Selected": true,
    "OpportunityProductId": "92a7e005-c561-453a-9a4b-2fe4669ff52f",
    "OpportunityId": "08d05125-2735-408c-ad55-a35ff9cfaf11",
    "Subject": "sample string 5",
    "ProductId": "9036cd9e-3e46-46e4-ab29-bbe8bee0d0a2",
    "Quantity": 7.0,
    "Note": "sample string 8",
    "Cost": 9.0,
    "SelectionParentId": "bac01f60-a0f0-4896-b321-ba558816c533",
    "SelectionParentName": "sample string 11"
  }
]

text/html

Sample:
[{"PriceListItemId":"e797a8bd-4001-46cf-94f4-c53b001b45e2","Name":"sample string 2","Selected":true,"OpportunityProductId":"92a7e005-c561-453a-9a4b-2fe4669ff52f","OpportunityId":"08d05125-2735-408c-ad55-a35ff9cfaf11","Subject":"sample string 5","ProductId":"9036cd9e-3e46-46e4-ab29-bbe8bee0d0a2","Quantity":7.0,"Note":"sample string 8","Cost":9.0,"SelectionParentId":"bac01f60-a0f0-4896-b321-ba558816c533","SelectionParentName":"sample string 11"},{"PriceListItemId":"e797a8bd-4001-46cf-94f4-c53b001b45e2","Name":"sample string 2","Selected":true,"OpportunityProductId":"92a7e005-c561-453a-9a4b-2fe4669ff52f","OpportunityId":"08d05125-2735-408c-ad55-a35ff9cfaf11","Subject":"sample string 5","ProductId":"9036cd9e-3e46-46e4-ab29-bbe8bee0d0a2","Quantity":7.0,"Note":"sample string 8","Cost":9.0,"SelectionParentId":"bac01f60-a0f0-4896-b321-ba558816c533","SelectionParentName":"sample string 11"}]

application/xml, text/xml

Sample:
<ArrayOfOpportunitySelectionProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BRH.Services.Models">
  <OpportunitySelectionProduct>
    <Cost>9</Cost>
    <Name>sample string 2</Name>
    <Note>sample string 8</Note>
    <OpportunityId>08d05125-2735-408c-ad55-a35ff9cfaf11</OpportunityId>
    <OpportunityProductId>92a7e005-c561-453a-9a4b-2fe4669ff52f</OpportunityProductId>
    <PriceListItemId>e797a8bd-4001-46cf-94f4-c53b001b45e2</PriceListItemId>
    <ProductId>9036cd9e-3e46-46e4-ab29-bbe8bee0d0a2</ProductId>
    <Quantity>7</Quantity>
    <Selected>true</Selected>
    <SelectionParentId>bac01f60-a0f0-4896-b321-ba558816c533</SelectionParentId>
    <SelectionParentName>sample string 11</SelectionParentName>
    <Subject>sample string 5</Subject>
  </OpportunitySelectionProduct>
  <OpportunitySelectionProduct>
    <Cost>9</Cost>
    <Name>sample string 2</Name>
    <Note>sample string 8</Note>
    <OpportunityId>08d05125-2735-408c-ad55-a35ff9cfaf11</OpportunityId>
    <OpportunityProductId>92a7e005-c561-453a-9a4b-2fe4669ff52f</OpportunityProductId>
    <PriceListItemId>e797a8bd-4001-46cf-94f4-c53b001b45e2</PriceListItemId>
    <ProductId>9036cd9e-3e46-46e4-ab29-bbe8bee0d0a2</ProductId>
    <Quantity>7</Quantity>
    <Selected>true</Selected>
    <SelectionParentId>bac01f60-a0f0-4896-b321-ba558816c533</SelectionParentId>
    <SelectionParentName>sample string 11</SelectionParentName>
    <Subject>sample string 5</Subject>
  </OpportunitySelectionProduct>
</ArrayOfOpportunitySelectionProduct>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Object

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.