Update WAF Policy
Update the Protection Policy for a website.
Request
Request-Line
PUT /waap/v1.0/wafStrategy/{id} HTTP/1.1
Request Parameters
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | integer | Mandatory | Unique identifier of the website record. |
Body Parameters
Parameter | Type | Required | Description |
---|---|---|---|
protectionPolicy | integer | Mandatory | Must be an integer from 1 to 9 (inclusive), where 1 = Basic, 2 = Standard, 3 = Strict, 4 = Basic Plus, 5 = Standard Plus, 6 = Monitoring, 7 = Balanced, 8 = Breach and Attack Simulation (BAS), and 9 = API-Specific. |
Response
Status Codes, Error Codes and Error Messages
Status Code | Error Code | Error Message |
---|---|---|
400 | Request.BadRequest | Bad request. |
400 | Id.Invalid | Id is empty or invalid. |
404 | Website.NotFound | Website is not found. |
Examples
Update WAF Policy
Request
PUT /waap/v1.0/wafStrategy/110 HTTP/1.1
{
"protectionPolicy": 3
}