POST api/Selections/UpdateSelectedProducts/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | string |
Required |
Body Parameters
UpdateSelectionsRequestName | Description | Type | Additional information |
---|---|---|---|
SelectedProducts | Collection of SelectedProduct |
None. |
|
StickerResults | Collection of StickerResult |
None. |
Request Formats
application/json, text/json
Sample:
{ "SelectedProducts": [ { "ProductId": "fcaf002a-0447-404a-9110-c23148c604b2", "Quantity": 2.0, "Subject": "sample string 3", "OpportunityProductId": "9a5f86d6-bd15-494c-8c5b-08bd70e24920", "Name": "sample string 5", "Notes": "sample string 6" }, { "ProductId": "fcaf002a-0447-404a-9110-c23148c604b2", "Quantity": 2.0, "Subject": "sample string 3", "OpportunityProductId": "9a5f86d6-bd15-494c-8c5b-08bd70e24920", "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":"fcaf002a-0447-404a-9110-c23148c604b2","Quantity":2.0,"Subject":"sample string 3","OpportunityProductId":"9a5f86d6-bd15-494c-8c5b-08bd70e24920","Name":"sample string 5","Notes":"sample string 6"},{"ProductId":"fcaf002a-0447-404a-9110-c23148c604b2","Quantity":2.0,"Subject":"sample string 3","OpportunityProductId":"9a5f86d6-bd15-494c-8c5b-08bd70e24920","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>9a5f86d6-bd15-494c-8c5b-08bd70e24920</d2p1:OpportunityProductId> <d2p1:ProductId>fcaf002a-0447-404a-9110-c23148c604b2</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>9a5f86d6-bd15-494c-8c5b-08bd70e24920</d2p1:OpportunityProductId> <d2p1:ProductId>fcaf002a-0447-404a-9110-c23148c604b2</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.