---
title: "Create a new template"
method: POST
path: "/template"
tags: ["template"]
---

# Create a new template

`POST /template`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/template`
- Auth: none declared

Create a new template

## Request body

- TemplateCreate
  - `title` string
  - `content` string

## Response `201`

banner was created successfully.

- Template
  - `id` string, long
  - `title` string
  - `content` string

## Changes

- **2021-01-26** `0ba0e4f05050`: 1 warning
  - removed the optional property `active` from the response with the `201` status
- **2021-01-26** `b3aae77bebcc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/office-of-national-statistics/apis/ras-rm-banner-service/changes/template/post.md)

---

[API](https://skmtc.dev/office-of-national-statistics/apis/ras-rm-banner-service.md) - [All operations](https://skmtc.dev/office-of-national-statistics/apis/ras-rm-banner-service/llms.txt) - [OpenAPI document](https://skmtc.dev/office-of-national-statistics/apis/ras-rm-banner-service/revisions/d00878b65739?raw)
