---
title: "Enrich Policy Template"
method: POST
path: "/policy/templates/enrich"
tags: ["policies"]
---

# Enrich Policy Template

`POST /policy/templates/enrich`

Enrich a policy template with LLM-discovered data (e.g. competitor names).

Calls an onboarded LLM to discover competitors for the given brand name,
then returns enriched guardrailDefinitions with the discovered data populated.

## Request body

- EnrichTemplateRequest
  - `competitors` string[], nullable — Optional list of competitor names
  - `instruction` string, nullable — Refinement instruction for modifying the competitor list (e.g. 'add 10 more from Asia')
  - `model` string, nullable
  - `parameters` object, required
  - `template_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-19** `c357baf422ab` — 2 info
  - api tag `policies` added
  - api tag `policy management` removed
- **2026-09-18** `082b5fabd909` — 4 info
  - api tag `policy management` added
  - api tag `policies` removed
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status

[Change history](https://skmtc.dev/flock/apis/litellm-api/changes/policy/templates/enrich/post.md)

---

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