---
title: "Archive Template Route"
method: POST
path: "/templates/{template_identifier}/archive"
---

# Archive Template Route

`POST /templates/{template_identifier}/archive`

## Request

- Base URL: `https://api.goodeye.dev/v1`
- URL: `https://api.goodeye.dev/v1/templates/{template_identifier}/archive`
- Auth: none declared

Archive a template owned by the caller.

Body is optional (``{archive_reason}``). Archiving keeps the slug
occupied and hides the template from public listing. Forks pinned at
this template keep working.

## Path parameters

- `template_identifier` string, required

## Request body

- ArchiveTemplateInput: Optional body for ``POST /v1/templates/{template_identifier}/archive``. ``archive_reason`` is a short human-readable note stored on ``templates.archive_reason``. Empty body is accepted (FastAPI passes ``None`` to the route, which then constructs a default).
  - `archive_reason` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/goodeye/apis/goodeye-api.md) · [All operations](https://skmtc.dev/goodeye/apis/goodeye-api/llms.txt) · [OpenAPI document](https://skmtc.dev/goodeye/apis/goodeye-api/revisions/547cb8bb6ede?raw)
