POST api/admin/ProductsApi/AddNewProductColor
Request Information
URI Parameters
None.
Body Parameters
InsertProductColorModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductID | integer |
Range: inclusive between 1 and 2147483647 |
|
| ColorName | string |
String length: inclusive between 0 and 50 |
|
| ColorHex | string |
String length: inclusive between 0 and 10 |
|
| ColorSwatchTextColor | string |
String length: inclusive between 0 and 20 |
|
| Status | string |
Min length: 1 String length: inclusive between 0 and 20 |
|
| ColorType | string |
Min length: 1 String length: inclusive between 0 and 50 |
|
| MinPerOrder | integer |
None. |
|
| PrimaryHexText | string |
None. |
|
| SecondaryHexText | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductID": 1,
"ColorName": "sample string 2",
"ColorHex": "sample string 3",
"ColorSwatchTextColor": "sample string 4",
"Status": "sample string 5",
"ColorType": "sample string 6",
"MinPerOrder": 7,
"PrimaryHexText": "sample string 8",
"SecondaryHexText": "sample string 9"
}
application/xml, text/xml
Sample:
<InsertProductColorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAWModels.PostModel"> <ColorHex>sample string 3</ColorHex> <ColorName>sample string 2</ColorName> <ColorSwatchTextColor>sample string 4</ColorSwatchTextColor> <ColorType>sample string 6</ColorType> <MinPerOrder>7</MinPerOrder> <PrimaryHexText>sample string 8</PrimaryHexText> <ProductID>1</ProductID> <SecondaryHexText>sample string 9</SecondaryHexText> <Status>sample string 5</Status> </InsertProductColorModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.