---
title: "Set bot policy"
method: PUT
path: "/v1/waf/domains/{waf_domain_id}/bot-policy"
tags: ["WAF"]
---

# Set bot policy

`PUT /v1/waf/domains/{waf_domain_id}/bot-policy`

## Request

- Base URL: `https://developers.servera.lt`
- URL: `https://developers.servera.lt/v1/waf/domains/{waf_domain_id}/bot-policy`
- Auth: HTTP bearer

Set the per-bot allow/block policy for a WAF domain (a partial map is fine — unset bots keep their default).

## Path parameters

- `waf_domain_id` integer, required

## Request body

- WafBotPolicy
  - `policy` object, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/servera/apis/servera-developers-api-2.md) · [All operations](https://skmtc.dev/servera/apis/servera-developers-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/servera/apis/servera-developers-api-2/revisions/2e744791e77f?raw)
