POST api/templates
Create a new TemplateInfo
Request Information
URI Parameters
None.
Body Parameters
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. |
Request Formats
application/json, text/json
Sample:
{ "Id": "912fe493-ac33-46a4-9bbc-6b7036066755", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "40930769-8684-4c7d-8fb6-def2171dbd8d", "Name": "sample string 2" }, "App": { "Id": "40930769-8684-4c7d-8fb6-def2171dbd8d", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "d6638dc0-aaca-4c3b-bcb6-dd3746a234ca", "43fea590-3bbb-46bb-ae97-a32d3820f5f2" ] }
Response Information
Resource Description
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": "00a3aef2-5cf5-4aaa-95f6-29e8bf304867", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "96acaa38-5771-4933-93e9-ba97724101f8", "Name": "sample string 2" }, "App": { "Id": "96acaa38-5771-4933-93e9-ba97724101f8", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "c6fd97cb-bdf2-4d0e-a639-6583ab1bae3f", "89f7e171-0d36-4757-91b4-39c6ac957acb" ] }