---
title: "Create Template"
method: POST
path: "/api/v2/indexing/create-template"
tags: ["IndexV2"]
---

# Create Template

`POST /api/v2/indexing/create-template`

## Request

- Base URL: `https://indexing-dev.hawksearch.net`
- URL: `https://indexing-dev.hawksearch.net/api/v2/indexing/create-template`
- Auth: none declared. Required headers: `X-HawkSearch-ApiKey`
- TypeScript: <https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/docs/api/v2/indexing/create-template/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new index tempalte

## Headers

- `X-HawkSearch-ApiKey` string, required

## Request body

- IndexTemplateParams: Index template params
  - `TemplateSuffix` string: User defined suffix

## Response `200`

OK

- object

---

[API](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi.md) - [All operations](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/llms.txt) - [OpenAPI document](https://skmtc.dev/hawksearch/apis/hawksearch-elasticsearch-indexingapi/revisions/24cba7bf3468?raw)
