SemanticTemplateCreate
Payload used to create Semantic Template. The required field is name.
nameName (string)required
alias object
anyOf
- string
- null
string
collection_id object
Identifier of the containing collection.
- string
- null
string
Possible values: non-empty
folder_id object
anyOf
- string
- null
string
tags object
anyOf
- string[]
- null
Array [
string
]
description object
anyOf
- string
- null
string
templates object[]
Array [
nameName (string)required
Stable name of the computation template within its template group.
description object
Human-readable explanation of the computation.
- string
- null
string
questionsstring[]required
Example questions used to match requests to this template.
Possible values: >= 1
slots object[]
Input slots shared by every query in the template.
Array [
nameName (string)required
kindKind (string)
Possible values: [string, number, value, list]
Default value:
stringdescription object
anyOf
- string
- null
string
requiredRequired (boolean)
Default value:
truedefaultDefault
]
queries object[]required
Named queries whose results are passed to the computation code.
Possible values: >= 1
Array [
nameName (string)required
table_idTable Id (string)required
toolTool (string)
Possible values: [metrics, rows]
Default value:
metricsquery objectrequired
property name*any
]
codeCode (string)required
Code that combines the named query results into the template output.
]
SemanticTemplateCreate
{
"name": "string",
"alias": "string",
"collection_id": "string",
"folder_id": "string",
"tags": [
"string"
],
"description": "string",
"templates": [
{
"name": "string",
"description": "string",
"questions": [
"string"
],
"slots": [
{
"name": "string",
"kind": "string",
"description": "string",
"required": true
}
],
"queries": [
{
"name": "string",
"table_id": "string",
"tool": "metrics",
"query": {}
}
],
"code": "string"
}
]
}