> ## Documentation Index
> Fetch the complete documentation index at: https://tapace.lk/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Archive a template

> Stops a template from issuing new passes.

Archiving hides the template and blocks new passes from it. Passes already issued keep working and can still be updated. Archiving an archived template does nothing. To remove the template and its passes, [delete it](https://tapace.lk/docs/api-reference/templates/delete.md).

**id** `string` *required*

The template ID.

**Idempotency-Key** `string` *required*

A unique value for this request.

### Response

Returns the [template](https://tapace.lk/docs/api-reference/templates/get.md) with `archived` set to `true`.

```bash cURL theme={null}
curl -X POST https://api.tapace.lk/v1/templates/tmpl_Q4vN8xT2mLr7KpZs3Wd1/archive \
  -H "Authorization: Bearer $TAPACE_API_KEY" \
  -H "Idempotency-Key: 4a9e2c7b-1d3f-4b6a-8e5c-9f2d1a7b3c80"
```

```json 200 theme={null}
{
  "object": "template",
  "id": "tmpl_Q4vN8xT2mLr7KpZs3Wd1",
  "type": "generic",
  "name": "Gold membership",
  "revision": 3,
  "archived": true,
  "requiredFields": [],
  "requiredActions": [],
  "issuePlatforms": { "apple": true, "google": true },
  "createdAt": "2026-10-01T09:00:00.000Z",
  "updatedAt": "2026-10-13T10:00:00.000Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.