scope, displayName and an optional set
of fields to the POST /metadata_templates/schema API.
Metadata templates can only be created for the
enterprise scope. Templates
can not be created for the global scope.Template Fields
Thefields attribute represents the set of individual fields that a user can
fill in on a template. For example, a customer template might have a name
field of type string.
Template fields can be of string, enum, float, date, enum or
multiSelect type. Each field requires at least a type, displayName and key.
enum and multiSelect field types represent a dropdown list where a user
can select respectively one or many options from a list of items.
Learn more about Metadata Template Fields
Template Keys
When a metadata template is created, atemplateKey is automatically generated
from the displayName of the template unless a templateKey is explicitly
provided. When creating the template key, any spaces and irregular
characters in the name are removed, and the string is transformed to camel case.
For example, a metadata template that is named
Test Name (with-special_) Characters will have a templateKey of
testNameWithspecialCharacters.
This template key is then used when making any API requests to get the
template’s information or assign it to an item.
