---
title: "Update an agreement template"
method: PATCH
path: "/templates/{id}"
tags: ["Templates"]
---

# Update an agreement template

`PATCH /templates/{id}`

## Request

- Base URL: `https://dataroom.corgi.com/api/v1`
- URL: `https://dataroom.corgi.com/api/v1/templates/{id}`
- Auth: HTTP bearer

Rename a template or restore an archived one (`archived: false`). Editing its documents/fields is done in the app. Scope: `templates:write`.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string
  - `message` string
  - `reminderDays` integer
  - `archived` boolean: Pass false to restore an archived template

## Response `200`

Updated

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/corgi/apis/dataroom-api.md) - [All operations](https://skmtc.dev/corgi/apis/dataroom-api/llms.txt) - [OpenAPI document](https://skmtc.dev/corgi/apis/dataroom-api/revisions/73f75ef04a00?raw)
