POST Catalog/AddAttribute
Adds a child attribute to a parent It's up to the front to set the attribute sortOrder.
Request Information
URI Parameters
None.
Body Parameters
use null ParentAttributeID, for top parent attributes
AddAttributeBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| Disabled | date |
None. |
|
| ParentID | integer |
None. |
|
| Name | string |
Required |
|
| Value |
The value related to this attribute. E.g. color black has value : 0x00000 |
string |
None. |
| SortOrder | integer |
None. |
|
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Disabled": "2025-12-06T09:17:22.0072642+01:00",
"ParentID": 1,
"Name": "sample string 1",
"Value": "sample string 2",
"SortOrder": 3,
"Lang": "sample string 4",
"StoreID": 5
}
application/xml, text/xml
Sample:
<AddAttributeBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Catalog"> <Lang xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">sample string 4</Lang> <StoreID xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Common.Base">5</StoreID> <Disabled>2025-12-06T09:17:22.0072642+01:00</Disabled> <Name>sample string 1</Name> <ParentID>1</ParentID> <SortOrder>3</SortOrder> <Value>sample string 2</Value> </AddAttributeBinding>
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>