templates

Create a new template

Changed on
post/templates

Request

  • Base URL
    /kapacitor/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Request body

idstring

Template ID

typestring

Template type, one of 'stream' or 'batch'

scriptstring

TICKscript content

varsobject

Set of variables from the TICKscript with their type and default value.

dotstring

Graphviz DOT syntax representation of the template DAG

errorunknown
createdstring dateTime

Date template was first created

modifiedstring dateTime

Date template was last modified

Response

Template ID

idstring

Template ID

typestring

Template type, one of 'stream' or 'batch'

scriptstring

TICKscript content

varsobject

Set of variables from the TICKscript with their type and default value.

dotstring

Graphviz DOT syntax representation of the template DAG

errorunknown
createdstring dateTime

Date template was first created

modifiedstring dateTime

Date template was last modified

Changes