---
title: "Create InfraProvider Template"
method: POST
path: "/accounts/{accountIdentifier}/infraproviders/{infraprovider_identifier}/templates"
tags: ["infraproviders"]
---

# Create InfraProvider Template

`POST /accounts/{accountIdentifier}/infraproviders/{infraprovider_identifier}/templates`

## Request

- Base URL: `gateway/cde/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `gateway/cde/api/v1/accounts/{accountIdentifier}/infraproviders/{infraprovider_identifier}/templates`
- Auth: HTTP bearer and API key in header `x-api-key`

## Path parameters

- `accountIdentifier` string, required
- `infraprovider_identifier` string, required

## Request body

- OpenapiCreateInfraProviderTemplateRequest
  - `data` string
  - `description` string
  - `identifier` string

## Response `201`

Created

- TypesInfraProviderTemplate
  - `config_identifier` string
  - `created` integer
  - `data` string
  - `description` string
  - `identifier` string
  - `space_id` integer
  - `space_path` string
  - `updated` integer

## Changes

> 19 revisions in range; 1 not diffed.

- **2025-02-28** `2513fb81d02b`: 1 info
  - endpoint added
- **2024-05-29** `e133a34ecf0b`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/harness/apis/api-specification/changes/accounts/:accountIdentifier/infraproviders/:infraprovider_identifier/templates/post.md)

---

[API](https://skmtc.dev/harness/apis/api-specification.md) · [All operations](https://skmtc.dev/harness/apis/api-specification/llms.txt) · [OpenAPI document](https://skmtc.dev/harness/apis/api-specification/revisions/3b3bedabcfa7?raw)
