POST api/admin/ComparableProductApi/SaveComparableProductRules
Request Information
URI Parameters
None.
Body Parameters
SaveComparableProductRules| Name | Description | Type | Additional information |
|---|---|---|---|
| ProductId | integer |
None. |
|
| ComparableProductRules | Collection of ComparableProductRules |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProductId": 1,
"ComparableProductRules": [
{
"Id": 1,
"ProductId": 2,
"RuleType": "sample string 3",
"RuleOperator": "sample string 4",
"RuleValue": "sample string 5",
"Product": [
{
"ProductId": 1,
"BrandId": 2,
"BrandName": "sample string 3",
"StyleName": "sample string 4",
"VendorId": 5,
"VendorName": "sample string 6"
},
{
"ProductId": 1,
"BrandId": 2,
"BrandName": "sample string 3",
"StyleName": "sample string 4",
"VendorId": 5,
"VendorName": "sample string 6"
}
],
"Category": [
{
"CategoryId": 1,
"CategoryName": "sample string 2",
"ProductId": 3,
"BrandId": 4,
"BrandName": "sample string 5",
"StyleName": "sample string 6",
"VendorId": 7,
"VendorName": "sample string 8"
},
{
"CategoryId": 1,
"CategoryName": "sample string 2",
"ProductId": 3,
"BrandId": 4,
"BrandName": "sample string 5",
"StyleName": "sample string 6",
"VendorId": 7,
"VendorName": "sample string 8"
}
],
"SubCategory": [
{
"SubCategoryId": 1,
"ProductId": 2,
"SubCategoryName": "sample string 3"
},
{
"SubCategoryId": 1,
"ProductId": 2,
"SubCategoryName": "sample string 3"
}
]
},
{
"Id": 1,
"ProductId": 2,
"RuleType": "sample string 3",
"RuleOperator": "sample string 4",
"RuleValue": "sample string 5",
"Product": [
{
"ProductId": 1,
"BrandId": 2,
"BrandName": "sample string 3",
"StyleName": "sample string 4",
"VendorId": 5,
"VendorName": "sample string 6"
},
{
"ProductId": 1,
"BrandId": 2,
"BrandName": "sample string 3",
"StyleName": "sample string 4",
"VendorId": 5,
"VendorName": "sample string 6"
}
],
"Category": [
{
"CategoryId": 1,
"CategoryName": "sample string 2",
"ProductId": 3,
"BrandId": 4,
"BrandName": "sample string 5",
"StyleName": "sample string 6",
"VendorId": 7,
"VendorName": "sample string 8"
},
{
"CategoryId": 1,
"CategoryName": "sample string 2",
"ProductId": 3,
"BrandId": 4,
"BrandName": "sample string 5",
"StyleName": "sample string 6",
"VendorId": 7,
"VendorName": "sample string 8"
}
],
"SubCategory": [
{
"SubCategoryId": 1,
"ProductId": 2,
"SubCategoryName": "sample string 3"
},
{
"SubCategoryId": 1,
"ProductId": 2,
"SubCategoryName": "sample string 3"
}
]
}
]
}
application/xml, text/xml
Sample:
<SaveComparableProductRules xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAWModels.PostModel">
<ComparableProductRules xmlns:d2p1="http://schemas.datacontract.org/2004/07/BAWModels">
<d2p1:ComparableProductRules>
<d2p1:Category>
<d2p1:ComparableCategoryDetails>
<d2p1:BrandId>4</d2p1:BrandId>
<d2p1:BrandName>sample string 5</d2p1:BrandName>
<d2p1:CategoryId>1</d2p1:CategoryId>
<d2p1:CategoryName>sample string 2</d2p1:CategoryName>
<d2p1:ProductId>3</d2p1:ProductId>
<d2p1:StyleName>sample string 6</d2p1:StyleName>
<d2p1:VendorId>7</d2p1:VendorId>
<d2p1:VendorName>sample string 8</d2p1:VendorName>
</d2p1:ComparableCategoryDetails>
<d2p1:ComparableCategoryDetails>
<d2p1:BrandId>4</d2p1:BrandId>
<d2p1:BrandName>sample string 5</d2p1:BrandName>
<d2p1:CategoryId>1</d2p1:CategoryId>
<d2p1:CategoryName>sample string 2</d2p1:CategoryName>
<d2p1:ProductId>3</d2p1:ProductId>
<d2p1:StyleName>sample string 6</d2p1:StyleName>
<d2p1:VendorId>7</d2p1:VendorId>
<d2p1:VendorName>sample string 8</d2p1:VendorName>
</d2p1:ComparableCategoryDetails>
</d2p1:Category>
<d2p1:Id>1</d2p1:Id>
<d2p1:Product>
<d2p1:ComparableProductDetails>
<d2p1:BrandId>2</d2p1:BrandId>
<d2p1:BrandName>sample string 3</d2p1:BrandName>
<d2p1:ProductId>1</d2p1:ProductId>
<d2p1:StyleName>sample string 4</d2p1:StyleName>
<d2p1:VendorId>5</d2p1:VendorId>
<d2p1:VendorName>sample string 6</d2p1:VendorName>
</d2p1:ComparableProductDetails>
<d2p1:ComparableProductDetails>
<d2p1:BrandId>2</d2p1:BrandId>
<d2p1:BrandName>sample string 3</d2p1:BrandName>
<d2p1:ProductId>1</d2p1:ProductId>
<d2p1:StyleName>sample string 4</d2p1:StyleName>
<d2p1:VendorId>5</d2p1:VendorId>
<d2p1:VendorName>sample string 6</d2p1:VendorName>
</d2p1:ComparableProductDetails>
</d2p1:Product>
<d2p1:ProductId>2</d2p1:ProductId>
<d2p1:RuleOperator>sample string 4</d2p1:RuleOperator>
<d2p1:RuleType>sample string 3</d2p1:RuleType>
<d2p1:RuleValue>sample string 5</d2p1:RuleValue>
<d2p1:SubCategory>
<d2p1:ComparableSubCategoryDetails>
<d2p1:ProductId>2</d2p1:ProductId>
<d2p1:SubCategoryId>1</d2p1:SubCategoryId>
<d2p1:SubCategoryName>sample string 3</d2p1:SubCategoryName>
</d2p1:ComparableSubCategoryDetails>
<d2p1:ComparableSubCategoryDetails>
<d2p1:ProductId>2</d2p1:ProductId>
<d2p1:SubCategoryId>1</d2p1:SubCategoryId>
<d2p1:SubCategoryName>sample string 3</d2p1:SubCategoryName>
</d2p1:ComparableSubCategoryDetails>
</d2p1:SubCategory>
</d2p1:ComparableProductRules>
<d2p1:ComparableProductRules>
<d2p1:Category>
<d2p1:ComparableCategoryDetails>
<d2p1:BrandId>4</d2p1:BrandId>
<d2p1:BrandName>sample string 5</d2p1:BrandName>
<d2p1:CategoryId>1</d2p1:CategoryId>
<d2p1:CategoryName>sample string 2</d2p1:CategoryName>
<d2p1:ProductId>3</d2p1:ProductId>
<d2p1:StyleName>sample string 6</d2p1:StyleName>
<d2p1:VendorId>7</d2p1:VendorId>
<d2p1:VendorName>sample string 8</d2p1:VendorName>
</d2p1:ComparableCategoryDetails>
<d2p1:ComparableCategoryDetails>
<d2p1:BrandId>4</d2p1:BrandId>
<d2p1:BrandName>sample string 5</d2p1:BrandName>
<d2p1:CategoryId>1</d2p1:CategoryId>
<d2p1:CategoryName>sample string 2</d2p1:CategoryName>
<d2p1:ProductId>3</d2p1:ProductId>
<d2p1:StyleName>sample string 6</d2p1:StyleName>
<d2p1:VendorId>7</d2p1:VendorId>
<d2p1:VendorName>sample string 8</d2p1:VendorName>
</d2p1:ComparableCategoryDetails>
</d2p1:Category>
<d2p1:Id>1</d2p1:Id>
<d2p1:Product>
<d2p1:ComparableProductDetails>
<d2p1:BrandId>2</d2p1:BrandId>
<d2p1:BrandName>sample string 3</d2p1:BrandName>
<d2p1:ProductId>1</d2p1:ProductId>
<d2p1:StyleName>sample string 4</d2p1:StyleName>
<d2p1:VendorId>5</d2p1:VendorId>
<d2p1:VendorName>sample string 6</d2p1:VendorName>
</d2p1:ComparableProductDetails>
<d2p1:ComparableProductDetails>
<d2p1:BrandId>2</d2p1:BrandId>
<d2p1:BrandName>sample string 3</d2p1:BrandName>
<d2p1:ProductId>1</d2p1:ProductId>
<d2p1:StyleName>sample string 4</d2p1:StyleName>
<d2p1:VendorId>5</d2p1:VendorId>
<d2p1:VendorName>sample string 6</d2p1:VendorName>
</d2p1:ComparableProductDetails>
</d2p1:Product>
<d2p1:ProductId>2</d2p1:ProductId>
<d2p1:RuleOperator>sample string 4</d2p1:RuleOperator>
<d2p1:RuleType>sample string 3</d2p1:RuleType>
<d2p1:RuleValue>sample string 5</d2p1:RuleValue>
<d2p1:SubCategory>
<d2p1:ComparableSubCategoryDetails>
<d2p1:ProductId>2</d2p1:ProductId>
<d2p1:SubCategoryId>1</d2p1:SubCategoryId>
<d2p1:SubCategoryName>sample string 3</d2p1:SubCategoryName>
</d2p1:ComparableSubCategoryDetails>
<d2p1:ComparableSubCategoryDetails>
<d2p1:ProductId>2</d2p1:ProductId>
<d2p1:SubCategoryId>1</d2p1:SubCategoryId>
<d2p1:SubCategoryName>sample string 3</d2p1:SubCategoryName>
</d2p1:ComparableSubCategoryDetails>
</d2p1:SubCategory>
</d2p1:ComparableProductRules>
</ComparableProductRules>
<ProductId>1</ProductId>
</SaveComparableProductRules>
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.