GET v1/ShopGroups/{shopGroupId}/RootProductGroups
Get a list with all Root Product groups, for given shop group.
Request Information
Requires Authorization!
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
shopGroupId |
The id of the shop group. |
integer |
Required. |
Body Parameters
None.
Response Information
Resource Description
A list of the ProductGroupBasicInfo object.
Collection of ProductGroupBasicInfo
Name | Description | Type | Additional information |
---|---|---|---|
Id |
Gets or sets the identifier. |
integer |
Required |
Name |
Gets or sets the name. |
string |
Max length: 100 |
ParentProductGroupId |
Gets or sets the parent product group identifier. |
integer |
None. |
NrOfChilds |
The number of child Product Groups. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Name": "sample string 2", "ParentProductGroupId": 1, "NrOfChilds": 3 }, { "Id": 1, "Name": "sample string 2", "ParentProductGroupId": 1, "NrOfChilds": 3 } ]
application/xml, text/xml
Sample:
<ArrayOfProductGroupBasicInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ProductGroupBasicInfo> <Id>1</Id> <Name>sample string 2</Name> <ParentProductGroupId>1</ParentProductGroupId> <NrOfChilds>3</NrOfChilds> </ProductGroupBasicInfo> <ProductGroupBasicInfo> <Id>1</Id> <Name>sample string 2</Name> <ParentProductGroupId>1</ParentProductGroupId> <NrOfChilds>3</NrOfChilds> </ProductGroupBasicInfo> </ArrayOfProductGroupBasicInfo>