POST product/addcategory

Add Category to a product Set a category to be primary and Remove other category which will make the provided category to be primary

Request Information

Parameters

NameDescriptionAdditional information
pcm
1) ProdcutCode: The product code 
            2) CategoryCode: The category code
            3) IsPrimary: Sets the category to be primary
            4) RemoveOthers: This will remove all the other relations and set the current category to be primary

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "ProductCode": "sample string 1",
  "CategoryCode": "sample string 2",
  "IsPrimary": true,
  "RemoveOthers": true
}

application/xml, text/xml

Sample:
<ProductCategoryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <CategoryCode>sample string 2</CategoryCode>
  <IsPrimary>true</IsPrimary>
  <ProductCode>sample string 1</ProductCode>
  <RemoveOthers>true</RemoveOthers>
</ProductCategoryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.