authoring-create-item-template
Create a Sitecore data template, including sections and fields, in one API call; specify a template folder GUID as parent.
Instructions
Creates a Sitecore data template, with its sections and fields, in one call over the Authoring and Management API. The parent must be a GUID — the folder under /sitecore/templates the template belongs in. Field types are Sitecore's own names, e.g. 'Single-Line Text', 'Rich Text', 'Image', 'General Link', 'Droptree'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | No | The template's icon, e.g. 'Office/16x16/document.png'. | |
| name | Yes | The template's name. | |
| parent | Yes | The GUID of the template folder to create in. A path is not accepted — resolve it with authoring-get-item. | |
| database | No | The database to create in. Defaults to master. | |
| language | No | The language to create the template in. | |
| sections | No | The sections and their fields. A template with no sections holds no fields of its own. | |
| baseTemplates | No | GUIDs of templates to inherit from. Page templates normally inherit the site's base page template. | |
| createStandardValuesItem | No | When true, create the __Standard Values item, which is where presentation details and field defaults live. |