---
title: "Validate Edge Rule"
method: POST
path: "/sites/{site_id}/edge_rules/validate"
tags: ["sites"]
---

# Validate Edge Rule

`POST /sites/{site_id}/edge_rules/validate`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{site_id}/edge_rules/validate`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:site_id/edge_rules/validate/post.ts> (a function with typed inputs; its response is checked against the schema)

Check a rule's settings without adding it, and without checking the quota. Answers with the settings as they would be stored and their summary, or every problem, each naming its field.

## Path parameters

- `site_id` integer, required

## Request body

- object
  - `rule_key` string
  - `definition` object

## Response `200`

Successful Response

- object
  - `message` string
  - `code` string

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
