POST api/Selections/UpdateSelectedProducts/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
Body Parameters
UpdateSelectionsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| SelectedProducts | Collection of SelectedProduct |
None. |
|
| StickerResults | Collection of StickerResult |
None. |
Request Formats
application/json, text/json
Sample:
{
"SelectedProducts": [
{
"ProductId": "62da9fb4-99dc-43c6-9326-8a79c5234cd9",
"Quantity": 2.0,
"Subject": "sample string 3",
"OpportunityProductId": "53cb32f6-3d8c-4c92-bd3a-84554faf51e5",
"Name": "sample string 5",
"Notes": "sample string 6"
},
{
"ProductId": "62da9fb4-99dc-43c6-9326-8a79c5234cd9",
"Quantity": 2.0,
"Subject": "sample string 3",
"OpportunityProductId": "53cb32f6-3d8c-4c92-bd3a-84554faf51e5",
"Name": "sample string 5",
"Notes": "sample string 6"
}
],
"StickerResults": [
{
"X": 1.1,
"Y": 2.1,
"Width": 3.1,
"Height": 4.1,
"Name": "sample string 5",
"Id": "sample string 6",
"StickerType": 0,
"DisplayText": "sample string 7"
},
{
"X": 1.1,
"Y": 2.1,
"Width": 3.1,
"Height": 4.1,
"Name": "sample string 5",
"Id": "sample string 6",
"StickerType": 0,
"DisplayText": "sample string 7"
}
]
}
text/html
Sample:
{"SelectedProducts":[{"ProductId":"62da9fb4-99dc-43c6-9326-8a79c5234cd9","Quantity":2.0,"Subject":"sample string 3","OpportunityProductId":"53cb32f6-3d8c-4c92-bd3a-84554faf51e5","Name":"sample string 5","Notes":"sample string 6"},{"ProductId":"62da9fb4-99dc-43c6-9326-8a79c5234cd9","Quantity":2.0,"Subject":"sample string 3","OpportunityProductId":"53cb32f6-3d8c-4c92-bd3a-84554faf51e5","Name":"sample string 5","Notes":"sample string 6"}],"StickerResults":[{"X":1.1,"Y":2.1,"Width":3.1,"Height":4.1,"Name":"sample string 5","Id":"sample string 6","StickerType":0,"DisplayText":"sample string 7"},{"X":1.1,"Y":2.1,"Width":3.1,"Height":4.1,"Name":"sample string 5","Id":"sample string 6","StickerType":0,"DisplayText":"sample string 7"}]}
application/xml, text/xml
Sample:
<UpdateSelectionsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BRH.ServicesAPI.Controllers">
<SelectedProducts xmlns:d2p1="http://schemas.datacontract.org/2004/07/BRH.Services.Models">
<d2p1:SelectedProduct>
<d2p1:Name>sample string 5</d2p1:Name>
<d2p1:Notes>sample string 6</d2p1:Notes>
<d2p1:OpportunityProductId>53cb32f6-3d8c-4c92-bd3a-84554faf51e5</d2p1:OpportunityProductId>
<d2p1:ProductId>62da9fb4-99dc-43c6-9326-8a79c5234cd9</d2p1:ProductId>
<d2p1:Quantity>2</d2p1:Quantity>
<d2p1:Subject>sample string 3</d2p1:Subject>
</d2p1:SelectedProduct>
<d2p1:SelectedProduct>
<d2p1:Name>sample string 5</d2p1:Name>
<d2p1:Notes>sample string 6</d2p1:Notes>
<d2p1:OpportunityProductId>53cb32f6-3d8c-4c92-bd3a-84554faf51e5</d2p1:OpportunityProductId>
<d2p1:ProductId>62da9fb4-99dc-43c6-9326-8a79c5234cd9</d2p1:ProductId>
<d2p1:Quantity>2</d2p1:Quantity>
<d2p1:Subject>sample string 3</d2p1:Subject>
</d2p1:SelectedProduct>
</SelectedProducts>
<StickerResults xmlns:d2p1="http://schemas.datacontract.org/2004/07/BRH.Services.Models">
<d2p1:StickerResult>
<d2p1:DisplayText>sample string 7</d2p1:DisplayText>
<d2p1:Height>4.1</d2p1:Height>
<d2p1:Id>sample string 6</d2p1:Id>
<d2p1:Name>sample string 5</d2p1:Name>
<d2p1:StickerType>Image</d2p1:StickerType>
<d2p1:Width>3.1</d2p1:Width>
<d2p1:X>1.1</d2p1:X>
<d2p1:Y>2.1</d2p1:Y>
</d2p1:StickerResult>
<d2p1:StickerResult>
<d2p1:DisplayText>sample string 7</d2p1:DisplayText>
<d2p1:Height>4.1</d2p1:Height>
<d2p1:Id>sample string 6</d2p1:Id>
<d2p1:Name>sample string 5</d2p1:Name>
<d2p1:StickerType>Image</d2p1:StickerType>
<d2p1:Width>3.1</d2p1:Width>
<d2p1:X>1.1</d2p1:X>
<d2p1:Y>2.1</d2p1:Y>
</d2p1:StickerResult>
</StickerResults>
</UpdateSelectionsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ObjectNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.