POST Catalog/AddComponentProduct

Add a component-product relation

Request Information

URI Parameters

None.

Body Parameters

AddComponentProductBinding
NameDescriptionTypeAdditional information
ComponentID

integer

None.

ProductID

integer

None.

SortOrder

order of this product within Component

integer

None.

UseVariationPrice

If set, uses variation price for this component price

boolean

None.

Lang

string

None.

StoreID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ComponentID": 1,
  "ProductID": 2,
  "SortOrder": 3,
  "UseVariationPrice": true,
  "Lang": "sample string 5",
  "StoreID": 6
}

application/xml, text/xml

Sample:
<AddComponentProductBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Core.Models.Catalog">
  <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 5</Lang>
  <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">6</StoreID>
  <ComponentID>1</ComponentID>
  <ProductID>2</ProductID>
  <SortOrder>3</SortOrder>
  <UseVariationPrice>true</UseVariationPrice>
</AddComponentProductBinding>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.