---
title: "Install a rule pack"
method: POST
path: "/v1/sites/{siteId}/rule-packs"
tags: ["Sites"]
---

# Install a rule pack

`POST /v1/sites/{siteId}/rule-packs`

## Request

- Base URL: `https://api.ironfang.com/audit`
- URL: `https://api.ironfang.com/audit/v1/sites/{siteId}/rule-packs`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Installs the selected catalogue pack on the organisation's site using the supplied variable values. The pack's templates become site rules with their own revision history.

## Request body

- object
  - `pack_key` string, required
  - `variables` object, required: The values the pack declares. Missing ones are named in a 422.

## Response `201`

Installed

## Other responses

- `404`: Problem response
- `409`: Problem response
- `422`: Problem response

---

[API](https://skmtc.dev/ironfang/apis/ironfang-audit-api.md) · [All operations](https://skmtc.dev/ironfang/apis/ironfang-audit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ironfang/apis/ironfang-audit-api/revisions/7430deff2cbd?raw)
