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

# Update a template

`PATCH /api/v2/templates/{id}`

Update a template's name, description, and target-specific fields inside `model_attributes`. The dispatcher routes to a target-aware form: `deal` updates retainer fields (when the retainer feature is enabled), `budget` updates color (propagated to the underlying budget). Renaming a template also renames the wrapped target.

### Rename a template
```json
{ "data": { "type": "templates", "attributes": { "name": "Onboarding playbook v2" } } }
```

### Update a deal template's retainer cadence
```json
{
  "data": {
    "type": "templates",
    "attributes": {
      "model_attributes": {
        "retainer_interval": "month",
        "retainer_interval_count": 6
      }
    }
  }
}
```

### Update a budget template's color
```json
{
  "data": {
    "type": "templates",
    "attributes": { "model_attributes": { "color_id": 7 } }
  }
}
```

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

Successful response containing the requested template.

## Other responses

- `422` — Validation error from the target-specific update form.

---

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