---
title: "Update a template"
method: PUT
path: "/templates/{id}"
tags: ["Templates"]
---

# Update a template

`PUT /templates/{id}`

The API endpoint provides the functionality to move a document template to a different folder and update the name of the template.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string — The name of the template.
  - `folder_name` string — The folder's name to which the template should be moved.
  - `roles` string[] — An array of submitter role names to update the template with.
  - `archived` boolean — Set `false` to unarchive template.

## Response `200`

OK

- object
  - `id` integer, required — Template unique ID number.
  - `updated_at` string, required — Date and time when the template was last updated.

---

[API](https://skmtc.dev/keyring-network/apis/keyring-docsign-api.md) · [All operations](https://skmtc.dev/keyring-network/apis/keyring-docsign-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keyring-network/keyring-docsign-api/revisions/5381dc74855a/schema)
