---
title: "POST /ticket-templates"
method: POST
path: "/ticket-templates"
tags: ["TicketTemplate"]
---

# POST /ticket-templates

`POST /ticket-templates`

## Request

- Base URL: `https://api.c1st.com/api`
- URL: `https://api.c1st.com/api/ticket-templates`
- Auth: HTTP bearer

## Request body

- SetTicketTemplate
  - `content` TicketTemplate
    - `id` integer: A unique ticket ID
    - `label` string
    - `expected_minutes` integer, nullable: Expected work time in minutes for this task. Null means no estimate has been given; 0 means the task takes no time. Omitting it on update keeps the current value.
    - `groupid` integer: Which TicketTemplateGroup this TicketTemplate applies to
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `handle` string, nullable: Unique handle for tasktemplates. Will be set automatically if not set
    - `position` number: Number used to determine the order of the TaskTemplate
    - `note` string, nullable
    - `duedate` string, nullable
  - `positionAfterId` number, nullable: If this is set, the position of this TicketTemplate will be between positionaftermaterialid and the TicketTemplate below if (if it exists)
  - `positionBeforeId` number, nullable: If this is set, the position of this TicketTemplate will be between positionbeforematerialid and the TicketTemplate above if (if it exists)

## Response `200`

Ok

- TicketTemplateResponse
  - `content` TicketTemplate
    - `id` integer: A unique ticket ID
    - `label` string
    - `expected_minutes` integer, nullable: Expected work time in minutes for this task. Null means no estimate has been given; 0 means the task takes no time. Omitting it on update keeps the current value.
    - `groupid` integer: Which TicketTemplateGroup this TicketTemplate applies to
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `handle` string, nullable: Unique handle for tasktemplates. Will be set automatically if not set
    - `position` number: Number used to determine the order of the TaskTemplate
    - `note` string, nullable
    - `duedate` string, nullable

---

[API](https://skmtc.dev/c1st/apis/customers-1st-api.md) - [All operations](https://skmtc.dev/c1st/apis/customers-1st-api/llms.txt) - [OpenAPI document](https://skmtc.dev/c1st/apis/customers-1st-api/revisions/4250bb326f2a?raw)
