---
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
  - `name` string
  - `description` string

## Response `200`

Successfully updated a template.

- object
  - `data` Template, required
    - `id` integer, required
    - `account_id` integer, required
    - `name` string, required
    - `sid` string, required
    - `description` string, required
    - `created_at` string, date-time, required — A date-time value, representing when the entry was created, formatted as ISO 8601.
    - `updated_at` string, date-time, required — A date-time value, representing when the entry was last updated, formatted as ISO 8601.

## Other responses

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

---

[API](https://skmtc.net/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.net/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dnsimple/dnsimple-api/versions/270bb4f6f532/schema)
