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 TemplateInfoDto| Name | 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": "a7af35f1-9bd9-4453-86a5-af5d464f49ee",
"TemplateId": 2,
"Name": "sample string 3",
"SourceUrl": "sample string 4",
"CustomerGroup": {
"Id": "c0a30662-1a02-4d1d-97c6-a8280eccf8f8",
"Name": "sample string 2"
},
"App": {
"Id": "c0a30662-1a02-4d1d-97c6-a8280eccf8f8",
"Name": "sample string 2"
},
"PreviewType": "Pinch",
"InheritanceRestriction": "RootAndChild",
"ChildTemplates": [
"acf5ca8e-44dc-4786-b302-c9de48bbc522",
"e0f242ca-a849-4a3c-9509-17850b6afd1d"
]
},
{
"Id": "a7af35f1-9bd9-4453-86a5-af5d464f49ee",
"TemplateId": 2,
"Name": "sample string 3",
"SourceUrl": "sample string 4",
"CustomerGroup": {
"Id": "c0a30662-1a02-4d1d-97c6-a8280eccf8f8",
"Name": "sample string 2"
},
"App": {
"Id": "c0a30662-1a02-4d1d-97c6-a8280eccf8f8",
"Name": "sample string 2"
},
"PreviewType": "Pinch",
"InheritanceRestriction": "RootAndChild",
"ChildTemplates": [
"acf5ca8e-44dc-4786-b302-c9de48bbc522",
"e0f242ca-a849-4a3c-9509-17850b6afd1d"
]
}
]