Update Bot Rule
Updates an existing Bot Management Rule identified by ID.
Request
Request-Line
PUT /waap/v1.0/botManagementRule/{id} HTTP/1.1
Request Parameters
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | integer | Mandatory | Unique identifier assigned to the bot rule. |
Body Parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | string | Optional | The name for a new rule. The name must have 1-26 characters. Valid characters: 0-9, A-Z, a-z, space, . (dot), _ (underline), - (hyphen), () (parentheses), * (asterisk) and + (plus sign). If not provided, the existing name will remain unchanged. |
description | string | Optional | The description can have 1-200 characters. If not provided, the existing description will remain unchanged. |
silenceChallengeEnabled | boolean | Optional | Whether to enable silence challenge. If not provided, the existing setting will remain unchanged. |
silenceChallengeAction | string | Optional | Action when silence challenge triggers. Must be "block" or "captcha". If not provided, the existing action remains. |
ajaxEnabled | boolean | Optional | Whether to enable AJAX behavior detection. If not provided, the existing setting will remain unchanged. |
antiDebuggingEnabled | boolean | Optional | Whether to enable anti-debugging behavior detection. If not provided, the existing setting will remain unchanged. |
websites | integer[] | Optional | List of website IDs the rule applies to. Must contain at least one valid ID. If not provided, existing websites remain unchanged. |
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. |
400 | Name.Invalid | Name is empty or invalid. |
404 | BotManagementRule.NotFound | Bot Management Rule is not found. |
404 | Website.NotFound | Website is not found. |
Examples
Update Bot Rule
Request
PUT /waap/v1.0/botManagementRule/40 HTTP/1.1
{
"name": "test111",
"description": "111",
"silenceChallengeEnabled": 1,
"silenceChallengeAction": "captcha",
"ajaxEnabled": true,
"antiDebuggingEnabled": true,
"websites": [
110,111
]
}