# Place a rule, if its gate passes

`POST /patches` · Praecise Shield · Virtual patching

Body: reason, action (block | challenge), expiresInMinutes, match, testRefused, testPass. 422 gate_failed when testRefused is not stopped by the rule, or testPass would be stopped by it or by any rule in force.

## Parameters

- `site` (query, required), string

## Responses

- `201`: placed; takes effect now
- `400`: invalid_input
- `422`: gate_failed

## Example

```sh
curl -X POST 'https://shield.praecise.com/patches' \
  -H 'Authorization: Bearer $KEY'
```
