POST Catalog/AddComponent
Adds a Component child to a parent
Request Information
URI Parameters
None.
Body Parameters
use null ParentID, for top parent Components
AddComponentBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| Disabled | date |
None. |
|
| ProductID | integer |
None. |
|
| Name | string |
Required String length: inclusive between 0 and 100 |
|
| Description | string |
None. |
|
| MinimumQuantity | decimal number |
Range: inclusive between 0 and 2147483647 |
|
| MaximumQuantity | decimal number |
Range: inclusive between 0 and 2147483647 |
|
| SortOrder |
order of this Component within product |
integer |
None. |
| Optional |
A composite product can be ordered without an optional component |
boolean |
None. |
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Disabled": "2025-12-06T05:42:42.4753608+01:00",
"ProductID": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"MinimumQuantity": 4.0,
"MaximumQuantity": 5.0,
"SortOrder": 6,
"Optional": true,
"Lang": "sample string 8",
"StoreID": 9
}
application/xml, text/xml
Sample:
<AddComponentBinding 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 8</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">9</StoreID> <Description>sample string 3</Description> <Disabled>2025-12-06T05:42:42.4753608+01:00</Disabled> <MaximumQuantity>5</MaximumQuantity> <MinimumQuantity>4</MinimumQuantity> <Name>sample string 2</Name> <Optional>true</Optional> <ProductID>1</ProductID> <SortOrder>6</SortOrder> </AddComponentBinding>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>