---
title: "Update maintenance template"
method: PUT
path: "/api/v1/maintenance_templates/{id}"
tags: ["Maintenance template"]
---

# Update maintenance template

`PUT /api/v1/maintenance_templates/{id}`

## Path parameters

- `id` integer, required

## Request body

- UpdateMaintenanceTemplate
  - `token` string, required
  - `item` object
    - `equipment_type` string — the equipment type
    - `maintenance_type_id` integer — maintenance type id
    - `data` string — templates fields in the follwing json format

## Response `200`

maintenance template updated

## Other responses

- `401` — Error: Unauthorized
- `422` — maintenance type cannot be blank

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
