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": "b7d80f06-47d1-4434-b636-e3c4e5c7906b", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "42846229-03a1-4bf3-b7ce-a40ee6b9a61d", "Name": "sample string 2" }, "App": { "Id": "42846229-03a1-4bf3-b7ce-a40ee6b9a61d", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "297a568b-eba6-4c34-b215-c5afee927b10", "6c885c75-c862-4811-a74a-fb61c9d29bd3" ] }
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": "44058983-0aaf-48f4-8e44-b21d0edfd760", "TemplateId": 2, "Name": "sample string 3", "SourceUrl": "sample string 4", "CustomerGroup": { "Id": "6e19bfd4-5558-4aa6-ab46-565023a8827d", "Name": "sample string 2" }, "App": { "Id": "6e19bfd4-5558-4aa6-ab46-565023a8827d", "Name": "sample string 2" }, "PreviewType": "Pinch", "InheritanceRestriction": "RootAndChild", "ChildTemplates": [ "d711157f-52ff-4419-a550-b765f846d051", "524c072e-c6d6-4c41-b468-2638087e61ba" ] }