GET api/templates/customergroup/{customerGroupId}
Get templates list for customer group
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerGroupId |
customer group ID |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of TemplateInfoDtoName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
TemplateId | integer |
None. |
|
Name | string |
None. |
|
SourceUrl | string |
None. |
|
CustomerGroup | NamedItem |
None. |
|
App | NamedItem |
None. |
|
PreviewType | TemplatePreviewTypeEnum |
None. |
|
InheritanceRestriction | TemplateInheritanceRestrictionEnum |
None. |
|
ChildTemplates | Collection of globally unique identifier |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": "4da66a1f-6a17-4168-bca0-bf4941d0009c", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "2631df00-794c-40ae-abbb-f91442eccfc7", "Name": "sample string 2" }, "App": { "Id": "2631df00-794c-40ae-abbb-f91442eccfc7", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "a9ec5433-d691-449b-ba23-0406e06a382e", "6f547c2c-44c4-4238-8093-669be52eab57" ] }, { "Id": "4da66a1f-6a17-4168-bca0-bf4941d0009c", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "2631df00-794c-40ae-abbb-f91442eccfc7", "Name": "sample string 2" }, "App": { "Id": "2631df00-794c-40ae-abbb-f91442eccfc7", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "a9ec5433-d691-449b-ba23-0406e06a382e", "6f547c2c-44c4-4238-8093-669be52eab57" ] } ]