---
title: "Create template"
method: POST
path: "/controlplane/template"
tags: ["Log template"]
---

# Create template

`POST /controlplane/template`

Create a new template.

## Request body

- TemplateCreationRequest
  - `organization_id` integer — The ID of the organization.
  - `account_id` integer — The ID of the account.
  - `name` string — The name of the template.
  - `capability_category` string
  - `capability_provider` string
  - `content` string
  - `content_encoding` string
  - `template_vars` object

## Response `201`

Template created successfully.

- TemplateResponse
  - `organization_id` integer — The ID of the organization.
  - `account_id` integer — The ID of the account.
  - `name` string — The name of the template.
  - `capability_category` string
  - `capability_provider` string
  - `content` string
  - `content_encoding` string
  - `template_vars` object

## Other responses

- `4XX` — Client error responses due to invalid input or missing parameters.
- `5XX` — Server error responses indicating an issue on the API side.

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) · [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nullplatform/nullplatform-api/revisions/1c4ea154b159/schema)
