---
title: "Update Template"
method: PUT
path: "/api/declaration-templates/{template_id}"
tags: ["Declaration Templates (Admin)"]
---

# Update Template

`PUT /api/declaration-templates/{template_id}`

Update an existing template.

Body (all optional):
    name, html_content, css_content, id_modulo, tipo_doc, trigger_action,
    is_active, template_type, pdf_template_url, design_json

    For id_modulo / tipo_doc / trigger_action, sending `null` clears the
    column; omitting the key leaves it unchanged.

## Path parameters

- `template_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
