.template.create()
Function Example
/// Create instance
const connection = urchin(...config);
const connection.template.create([...templateInput]);
Parameters for TemplateInput
label (* required)
description
type
default
valid values
title*
name of taxonomy reference
string
""
length 1-200 characters
taxonomies*
eligible taxonomies associated with templates
PublicKey[]
inputs*
array of objects
[object]
[]
inputs[i].label*
field input label
string
length 1-24
inputs[i].type*
field input type
string
"text"
"text","textArea","select","numeric","file"
inputs[i].options
options when using type "select"
[string]
string length 1-24
archived
Flag that record is no longer in use
boolean
false
Response Example
[
{
title: "Blog Post",
inputs: [
{
label: "headline",
type: "text"
},
{
label: "stage",
type: "select",
options: [
"published",
"draft"
]
},
{
label: "featured image",
type: "file",
},
{
label: "body",
type: "textArea"
}
}
]
}
]
Last updated