POST api/Styles/InsertStyle
Request Information
URI Parameters
None.
Body Parameters
EskimoClassLibraries.clsStyleReferenceName | Description | Type | Additional information |
---|---|---|---|
StyleID | string |
Required String length: inclusive between 0 and 20 |
|
DefaultTillDescription | string |
Required String length: inclusive between 0 and 30 |
|
DefaultFullDescription | string |
Required String length: inclusive between 0 and 4000 |
|
DefaultProductDepartmentID | integer |
Required |
|
DefaultSupplierID | integer |
Required |
|
ProductTypeID | integer |
Required |
|
ShopVisibility | EskimoClassLibraries.clsShopVisibility |
Required |
|
PersonalisationText | string |
String length: inclusive between 0 and 50 |
|
PersonalisationSurCharge | decimal number |
None. |
|
CustomerID | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "StyleID": "sample string 1", "DefaultTillDescription": "sample string 2", "DefaultFullDescription": "sample string 3", "DefaultProductDepartmentID": 4, "DefaultSupplierID": 5, "ProductTypeID": 6, "ShopVisibility": { "VisibleEverywhere": true, "ShopIDs": [ "sample string 1", "sample string 2" ] }, "PersonalisationText": "sample string 7", "PersonalisationSurCharge": 8.0, "CustomerID": "sample string 9" }
application/xml, text/xml
Sample:
<clsStyleReference xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries"> <CustomerID>sample string 9</CustomerID> <DefaultFullDescription>sample string 3</DefaultFullDescription> <DefaultProductDepartmentID>4</DefaultProductDepartmentID> <DefaultSupplierID>5</DefaultSupplierID> <DefaultTillDescription>sample string 2</DefaultTillDescription> <PersonalisationSurCharge>8</PersonalisationSurCharge> <PersonalisationText>sample string 7</PersonalisationText> <ProductTypeID>6</ProductTypeID> <ShopVisibility> <ShopIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>sample string 1</d3p1:string> <d3p1:string>sample string 2</d3p1:string> </ShopIDs> <VisibleEverywhere>true</VisibleEverywhere> </ShopVisibility> <StyleID>sample string 1</StyleID> </clsStyleReference>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | System.Version |
None. |
|
Content | System.Net.Http.HttpContent |
None. |
|
StatusCode | System.Net.HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |