---
title: "Create a new template document"
method: POST
path: "/automation-studio/templates"
tags: ["Automation Studio"]
---

# Create a new template document

`POST /automation-studio/templates`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/automation-studio/templates`
- Auth: none declared

Creates a new template document.

## Request body

- object
  - `template` AutomationStudioTemplate: An entity representing a data template.
    - `_id` string: Unique identifier of the automation
    - `namespace` AutomationStudioTemplateNamespace
      - `type` unknown, required
      - `_id` AutomationStudioTemplateNamespaceId, required: A MongoDB ObjectId
      - `name` string, required
    - `name` string, required
    - `group` string, required
    - `command` string, required
    - `description` string, required
    - `template` string, required
    - `data` string, required
    - `type` 'textfsm' | 'jinja2', required
    - `createdBy` string: Unique identifier of the automation
    - `created` string, date-time
    - `lastUpdatedBy` string: Unique identifier of the automation
    - `lastUpdated` string, date-time
    - `version` number, double
    - `tags` AutomationStudioTemplateTagsItems[]
      - `_id` string: Unique identifier of the automation
      - `name` string: user-given, unique string to ID tag

## Response `200`

Created template and associated edit URI.

- AutomationStudioCreateTemplateResponse200: Created template and associated edit URI.
  - `created` AutomationStudioTemplate, required: An entity representing a data template.
    - `_id` string: Unique identifier of the automation
    - `namespace` AutomationStudioTemplateNamespace
      - `type` unknown, required
      - `_id` AutomationStudioTemplateNamespaceId, required: A MongoDB ObjectId
      - `name` string, required
    - `name` string, required
    - `group` string, required
    - `command` string, required
    - `description` string, required
    - `template` string, required
    - `data` string, required
    - `type` 'textfsm' | 'jinja2', required
    - `createdBy` string: Unique identifier of the automation
    - `created` string, date-time
    - `lastUpdatedBy` string: Unique identifier of the automation
    - `lastUpdated` string, date-time
    - `version` number, double
    - `tags` AutomationStudioTemplateTagsItems[]
      - `_id` string: Unique identifier of the automation
      - `name` string: user-given, unique string to ID tag
  - `edit` string, required: URI to the edit page for the newly created template.

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Automation Studio` added
  - api tag `automationStudio` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/automation-studio/templates/post.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
