---
title: "Update a template"
method: PATCH
path: "/{account}/templates/{template}"
tags: ["templates"]
---

# Update a template

`PATCH /{account}/templates/{template}`

Updates the template details.

## Path parameters

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

## Request body

- object
  - `sid` string, required
  - `name` string, required
  - `description` string

## Response `200`

Successfully updated a template.

- object
  - `data` Template
    - `id` integer
    - `account_id` integer
    - `name` string
    - `sid` string
    - `description` string
    - `created_at` string, date-time — A date-time value formatted as ISO 8601.
    - `updated_at` string, date-time — A date-time value formatted as ISO 8601.

## Other responses

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

## Changes

- **2023-07-18** (v2) `c8591dcf8c29` — 11 breaking
  - the request property `name` became required
  - the request property `sid` became required
  - the response property `data` became optional for the status `200`
  - the response property `data/account_id` became optional for the status `200`
  - …7 more

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/templates/:template/patch.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-service-production.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/revisions/2e2a96fa71fe/schema)
