POST product/addregionrelation
This method will add relation between region and product, can have multiple regions
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
productRegionRelation | 1) ProductCode: This is to identify the product 2) RegionId: This is to get the region you want the product to be associated with. To get list of region id's call /product/getregions |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "ProductCode": "sample string 1", "RegionId": 2 }
application/xml, text/xml
Sample:
<ProductRegionRelationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models"> <ProductCode>sample string 1</ProductCode> <RegionId>2</RegionId> </ProductRegionRelationModel>
application/x-www-form-urlencoded
Sample:
Sample not available.