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": "5277b9e2-9cab-4164-a448-77a683d017b9", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "9db7566a-93eb-44ed-bf19-c5086e3f725d", "Name": "sample string 2" }, "App": { "Id": "9db7566a-93eb-44ed-bf19-c5086e3f725d", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "96ac86b8-9908-4a61-937a-42f2b18437a4", "9c069b1e-7f51-423b-8c6c-4b7d5f8bbf29" ] }, { "Id": "5277b9e2-9cab-4164-a448-77a683d017b9", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "9db7566a-93eb-44ed-bf19-c5086e3f725d", "Name": "sample string 2" }, "App": { "Id": "9db7566a-93eb-44ed-bf19-c5086e3f725d", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "96ac86b8-9908-4a61-937a-42f2b18437a4", "9c069b1e-7f51-423b-8c6c-4b7d5f8bbf29" ] } ]