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": "da59c0ba-63b0-417b-b861-a1df373369cd",
"TemplateId": 2,
"Name": "sample string 3",
"SourceUrl": "sample string 4",
"CustomerGroup": {
"Id": "b1aa2c1f-990c-475c-afa1-062a9a198aca",
"Name": "sample string 2"
},
"App": {
"Id": "b1aa2c1f-990c-475c-afa1-062a9a198aca",
"Name": "sample string 2"
},
"PreviewType": "Pinch",
"InheritanceRestriction": "RootAndChild",
"ChildTemplates": [
"4db1ea51-e531-470f-b871-c27691b48fe0",
"9dfee537-285b-43c4-affb-9de1228ab681"
]
},
{
"Id": "da59c0ba-63b0-417b-b861-a1df373369cd",
"TemplateId": 2,
"Name": "sample string 3",
"SourceUrl": "sample string 4",
"CustomerGroup": {
"Id": "b1aa2c1f-990c-475c-afa1-062a9a198aca",
"Name": "sample string 2"
},
"App": {
"Id": "b1aa2c1f-990c-475c-afa1-062a9a198aca",
"Name": "sample string 2"
},
"PreviewType": "Pinch",
"InheritanceRestriction": "RootAndChild",
"ChildTemplates": [
"4db1ea51-e531-470f-b871-c27691b48fe0",
"9dfee537-285b-43c4-affb-9de1228ab681"
]
}
]