---
title: "Rename a template"
method: PATCH
path: "/api/v1/templates/{id}"
tags: ["Templates"]
---

# Rename a template

`PATCH /api/v1/templates/{id}`

## Path parameters

- `id` string, required — Template id

## Request body

- object
  - `name` string, required

## Response `200`

Renamed template

- object
  - `id` string, required
  - `organizationId` string, required
  - `teamId` string, nullable, required
  - `name` string, required
  - `originalFilename` string, required
  - `sourceFormat` string, required
  - `contentHash` string, required
  - `sizeBytes` number, required
  - `archivedAt` string, date-time, nullable, required
  - `useCount` integer, required
  - `lastUsedAt` string, date-time, nullable, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401` — Missing or invalid API key
- `404` — Template not found in this organization
- `422` — Template name is invalid

---

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