authoring-get-item-template
Read a Sitecore data template to get its sections and field definitions, including IDs, names, types, and sources. Use it before creating or updating items to learn accepted fields and required IDs.
Instructions
Reads a Sitecore data template over the Authoring and Management API, returning its sections and field definitions (name, type, source). Call this before authoring-create-item to learn which fields a template accepts, or before authoring-update-item-template to get the section and field IDs an update needs. Sections report their ID as itemTemplateSectionId; an update supplies that same value as templateSectionId. Supply exactly one of templateId or path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The template's path RELATIVE to /sitecore/templates, with no leading slash — e.g. 'Project/MySite/Page' or 'Sample/Sample Item'. An absolute path is rejected by the endpoint. Supply this or templateId. | |
| database | No | The database holding the template. Defaults to master. | |
| templateId | No | The template's GUID. Supply this or path. |