---
title: "Update Template"
method: PUT
path: "/api/templates/{template_id}"
tags: ["templates"]
---

# Update Template

`PUT /api/templates/{template_id}`

## Request

- Base URL: `https://api.getle.ad` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getle.ad/api/templates/{template_id}`
- Auth: none declared

Update an existing template.

## Path parameters

- `template_id` integer, required

## Request body

- TemplateUpdate
  - `name` string, nullable
  - `category` string, nullable
  - `subject` string, nullable
  - `body` string, nullable
  - `follow_ups` FollowUpStep[], nullable
    - `step_order` integer, required
    - `delay_days` integer
    - `delay_hours` integer
    - `subject` string, required
    - `body` string, required
  - `tags` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getle/apis/lead-generator-pro-api.md) · [All operations](https://skmtc.dev/getle/apis/lead-generator-pro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getle/apis/lead-generator-pro-api/revisions/041155e6d905?raw)
