---
title: "Apply a template"
method: POST
path: "/policy/templates"
---

# Apply a template

`POST /policy/templates`

## Request

- Base URL: `https://secureai.one/v1`
- URL: `https://secureai.one/v1/policy/templates`
- Auth: HTTP bearer

Replaces the rules wholesale rather than merging — a template somebody chose deliberately should be what they get. The account's own value allowlist, gateway destinations and webhook are kept: those are facts about their estate, not opinions about risk.

## Request body

- object
  - `id` string, required

## Response `200`

The new policy, and the caveat that came with the template.

## Other responses

- `401`: Missing or invalid credentials.
- `404`: No template with that id.

---

[API](https://skmtc.dev/secureai/apis/secure-ai.md) · [All operations](https://skmtc.dev/secureai/apis/secure-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/secureai/apis/secure-ai/revisions/6eefd7f53f8b?raw)
