---
title: "Apply a template"
method: POST
path: "/{account}/domains/{domain}/templates/{template}"
tags: ["templates"]
---

# Apply a template

`POST /{account}/domains/{domain}/templates/{template}`

Applies a template to a domain.

## Path parameters

- `account` integer, required
- `domain` string, required
- `template` string, required

## Response `204`

Successfully applied a template to the domain.

## Other responses

- `404` — The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17` — 1 info
  - the response property `message` became required for the status `404`
- **2023-07-18** (v2) `c8591dcf8c29` — 1 breaking
  - the response property `message` became optional for the status `404`

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/domains/:domain/templates/:template/post.md)

---

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