# Update a template

**PUT** `/v1/templates/{id}`

**Operation ID**: `updateTemplate`
**Summary**: Update a template
Updates a template by ID. The previous version is tombstoned.

## Tags
- Templates
## Parameters

- **id** (required) - path
  - Type: string

## Request Body

The updated template.

**Content-Type**: `application/json`

**Schema**: `Template`

## Responses

### 200

Template updated successfully

- **Content-Type**: `application/json` / `Template`
### 400

Template not found

### 401

Unauthorized
