---
title: "Update Template"
method: PATCH
path: "/calcul-exercises/template/{template_id}/update"
tags: ["Calcul Exercises"]
---

# Update Template

`PATCH /calcul-exercises/template/{template_id}/update`

Update a template's title, category_path, or difficulty.
Admin only.

## Path parameters

- `template_id` string, required

## Request body

- TemplateUpdateInput — Input model for updating a template. Partial update — fields left as `None` are untouched. `savoirs_faire_ids` uses a *set* semantic when provided (the full list wins), so clearing all tags is `{savoirs_faire_ids: []}` (not omitting it).
  - `title` string, nullable
  - `category_path` string[], nullable
  - `difficulty` string, nullable
  - `to_review` boolean, nullable
  - `savoirs_faire_ids` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
