---
title: "Add Deny Rule"
method: POST
path: "/v1/targets/deny-rules"
tags: ["targets"]
---

# Add Deny Rule

`POST /v1/targets/deny-rules`

## Request

- Base URL: `https://api.cybret.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.cybret.ai/v1/targets/deny-rules`
- Auth: HTTP bearer

## Request body

- AddDenyRuleRequest
  - `reason` string, required
  - `target_id` string, nullable
  - `domain_pattern` string, nullable
  - `port` integer, nullable
  - `method` string, nullable

## Response `201`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/cybret/apis/api-scanner-control-plane.md) · [All operations](https://skmtc.dev/cybret/apis/api-scanner-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/cybret/apis/api-scanner-control-plane/revisions/4c9b522246af?raw)
