# PATCH /exports/templates/:template_id

**Resource:** [Export Templates](./export-templates.md)  
**MCP tool:** `update_export_template`  
**Scopes:** `exports:write`  
**Write operation:** yes

Update an export template. Send the full columns / filters list, not a partial one.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `template_id` | path | string | yes |  |
| `name` | body | string | no | Rename the template. |
| `description` | body | string | no | Replace the note. Send null to clear it. |
| `columns` | body | array | no | Replaces the whole column list. Send the full set, not a partial one. |
| `filters` | body | array | no | Replaces the whole filter list. Send the full set, not a partial one. |
| `output` | body | object | no | File output settings: { "format": "csv" \| "xlsx", "bom": boolean, "filename_template": string }. filename_template accepts the tokens {name}, {YYYY-MM-DD}, {YYYY}, {MM}, {DD}. Defaults to { "format": "csv", "bom": true }. |
| `is_archived` | body | boolean | no | Archive the template (hides it from the Spreadsheets list) or restore it. |
| `delivery` | body | object | no | Scheduled-delivery settings. Send null to clear. |
| `require_approval` | body | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X PATCH   "https://api.trustpager.com/functions/v1/api/v1/exports/templates/:template_id"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`