본문으로 건너뛰기

SemanticTemplateCreate

Payload used to create Semantic Template. The required field is name.

nameName (string)필수
alias object
하나 이상(anyOf)
string
collection_id object

Identifier of the containing collection.

하나 이상(anyOf)
string

Possible values: non-empty

folder_id object
하나 이상(anyOf)
string
tags object
하나 이상(anyOf)
  • Array [
  • string
  • ]
  • description object
    하나 이상(anyOf)
    string
    templates object[]
  • Array [
  • nameName (string)필수

    Stable name of the computation template within its template group.

    description object

    Human-readable explanation of the computation.

    하나 이상(anyOf)
    string
    questionsstring[]필수

    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)필수
    kindKind (string)

    Possible values: [string, number, value, list]

    기본값: string
    description object
    하나 이상(anyOf)
    string
    requiredRequired (boolean)
    기본값: true
    defaultDefault
  • ]
  • queries object[]필수

    Named queries whose results are passed to the computation code.

    Possible values: >= 1

  • Array [
  • nameName (string)필수
    table_idTable Id (string)필수
    toolTool (string)

    Possible values: [metrics, rows]

    기본값: metrics
    query object필수
    property name*any
  • ]
  • codeCode (string)필수

    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"
    }
    ]
    }