POST api/templates
Create a new TemplateInfo
Request Information
URI Parameters
None.
Body Parameters
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. |
Request Formats
application/json, text/json
Sample:
{
"Id": "72965b9f-219d-4b2c-ace7-f3f1e6b0c192",
"TemplateId": 2,
"Name": "sample string 3",
"SourceUrl": "sample string 4",
"CustomerGroup": {
"Id": "7aba96a1-6055-4d80-856b-00a697d2a38e",
"Name": "sample string 2"
},
"App": {
"Id": "7aba96a1-6055-4d80-856b-00a697d2a38e",
"Name": "sample string 2"
},
"PreviewType": "Pinch",
"InheritanceRestriction": "RootAndChild",
"ChildTemplates": [
"afc892be-02b6-45c9-bde9-b2caa910ae70",
"dde67d16-5054-4746-aa25-a79a808361bf"
]
}
Response Information
Resource Description
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": "bb47edf8-513b-4258-a8a8-81dad0a62a1e",
"TemplateId": 2,
"Name": "sample string 3",
"SourceUrl": "sample string 4",
"CustomerGroup": {
"Id": "0f47d2d2-87ad-480d-a1d7-b3f157e08fc3",
"Name": "sample string 2"
},
"App": {
"Id": "0f47d2d2-87ad-480d-a1d7-b3f157e08fc3",
"Name": "sample string 2"
},
"PreviewType": "Pinch",
"InheritanceRestriction": "RootAndChild",
"ChildTemplates": [
"3cc3e536-ed6a-428a-923c-243f65c3a386",
"262a94e8-7bee-4226-bdb0-13b69f23c465"
]
}