#AttributeGroups
Attribute groups are used to organize attributes in the system for easy presentation in groups on different channels. Eg. if you want to display a long list of technical specifications, but grouped under different headlines, attribute groups are here for that purpose.
GET /attributegroups Get all attribute groups in the system
[
{
"Id": 2,
"Alias": "SizeAndWeight",
"SortOrder": 1,
"Name": {
"en-GB": "Size & weight",
"da-DK": "Størrelse & vægt"
}
},
{
"Id": 4,
"Alias": "MechanicalProperties",
"SortOrder": 2,
"Name": {
"en-GB": "Mechanical properties",
"da-DK": "Mekaniske egenskaber"
}
}
]
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Id | integer |
Unique id of attribute group |
Alias | string |
Unique alias of attribute group |
SortOrder | integer |
Sort order of the attribute group used to sort attribute groups between each other |
Name | object |
Localized name of attribute group used for displaying the attribute group on ex. a webshop (Dictionary of ISO culturecode and localized name) |
PUT /attributegroups Update an attribute group
{
"Id": 4,
"Alias": "MechanicalProperties",
"SortOrder": 4,
"Name": {
"en-GB": "Mechanical properties",
"da-DK": "Mekaniske egenskaber"
}
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
attributeGroup | body | object : AttributeGroup |
Updated attribute group |
Property name | Data type | Description |
---|---|---|
Id | integer |
Unique id of attribute group |
Alias | string |
Unique alias of attribute group |
SortOrder | integer |
Sort order of the attribute group used to sort attribute groups between each other |
Name | object |
Localized name of attribute group used for displaying the attribute group on ex. a webshop (Dictionary of ISO culturecode and localized name) |
Response status OK (200)
POST /attributegroups Create an attribute group
{
"Id": 0,
"Alias": "MechanicalProperties",
"SortOrder": 2,
"Name": {
"en-GB": "Mechanical properties",
"da-DK": "Mekaniske egenskaber"
}
}
4
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
attributeGroup | body | object : AttributeGroup |
Attribute group to create |
Property name | Data type | Description |
---|---|---|
Id | integer |
Unique id of attribute group |
Alias | string |
Unique alias of attribute group |
SortOrder | integer |
Sort order of the attribute group used to sort attribute groups between each other |
Name | object |
Localized name of attribute group used for displaying the attribute group on ex. a webshop (Dictionary of ISO culturecode and localized name) |
Response status OK (200)
DELETE /attributegroups Delete an attribute group
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | query | integer |
Id of attribute group to delete |
Response status OK (200)
GET /attributegroups/{id} Get a attribute group from its id
{
"Id": 4,
"Alias": "MechanicalProperties",
"SortOrder": 2,
"Name": {
"en-GB": "Mechanical properties",
"da-DK": "Mekaniske egenskaber"
}
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
id | path | integer |
Id of attribute group to get |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Id | integer |
Unique id of attribute group |
Alias | string |
Unique alias of attribute group |
SortOrder | integer |
Sort order of the attribute group used to sort attribute groups between each other |
Name | object |
Localized name of attribute group used for displaying the attribute group on ex. a webshop (Dictionary of ISO culturecode and localized name) |