v1

latestOpenAPI 3.1.0proprietary2026-07-24156175241.3 KB
Templates

Import a template as JSON

Import a template as JSON.

post/v1/templates

Request body

namestring required
template_keystring required
descriptionstring
code_hooksstring[]

Template hooks attached to the template. Note this format will soon be deprecated in favor of the hooks field.

Example request

{
  "name": "template_name",
  "template_key": "template_key",
  "columns": [
    {
      "label": "template_column_name",
      "key": "template_column_key"
    }
  ],
  "validation_hooks": [
    {
      "name": "validation_hook_name",
      "url": "https://example.com"
    }
  ],
  "hooks": {
    "preparsing": [
      {
        "key": "hook_key",
        "type": "code-postmapping"
      }
    ],
    "postupload": [
      {
        "key": "hook_key",
        "type": "code-postmapping"
      }
    ],
    "postmapping": [
      {
        "key": "hook_key",
        "type": "code-postmapping"
      }
    ],
    "validation": [
      {
        "key": "hook_key",
        "type": "code-postmapping"
      }
    ]
  }
}

Response

Successful response

idnumber