POST Feature/AddFeature
Adds a child Feature to a parent It's up to the front to set the Feature sortOrder.
Request Information
URI Parameters
None.
Body Parameters
use null ParentFeatureID, for top parent Features
AddFeatureBinding| Name | Description | Type | Additional information |
|---|---|---|---|
| ParentID | integer |
None. |
|
| Name | string |
Required |
|
| Description | string |
None. |
|
| Unit |
Kg, g, m, Km, N... |
string |
None. |
| TypeID | integer |
None. |
|
| Disabled |
If set, invalidate this Feature |
date |
None. |
| UsageLimit |
Number of times a value for this property can be used for the same entity. If 0, no limit and, then, this is a list property. |
integer |
None. |
| SortOrder | integer |
None. |
|
| ViewFormat |
Format used to show this value. E.g. surround by (), preceded by > |
string |
None. |
| Range |
Used to specify a lower and upper limit range for numeric values. Enabled when Min != Max Used to specify a lower and upper limit length for text values. Enabled when Max > 0 |
Range |
None. |
| Lang | string |
None. |
|
| StoreID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ParentID": 1,
"Name": "sample string 1",
"Description": "sample string 2",
"Unit": "sample string 3",
"TypeID": 4,
"Disabled": "2025-12-06T05:42:47.6690285+01:00",
"UsageLimit": 5,
"SortOrder": 6,
"ViewFormat": "sample string 7",
"Range": {
"Min": 1.0,
"Max": 2.0
},
"Lang": "sample string 8",
"StoreID": 9
}
application/xml, text/xml
Sample:
<AddFeatureBinding xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopworldApi.Admin.Models.Binding.Feature">
<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 2</Description>
<Disabled>2025-12-06T05:42:47.6690285+01:00</Disabled>
<Name>sample string 1</Name>
<ParentID>1</ParentID>
<Range xmlns:d2p1="http://schemas.datacontract.org/2004/07/ShopworldApi.Core.Models.Feature">
<d2p1:Max>2</d2p1:Max>
<d2p1:Min>1</d2p1:Min>
</Range>
<SortOrder>6</SortOrder>
<TypeID>4</TypeID>
<Unit>sample string 3</Unit>
<UsageLimit>5</UsageLimit>
<ViewFormat>sample string 7</ViewFormat>
</AddFeatureBinding>
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>