# Edit Custom Protection Rules - ModifyWafProtectionCustomerInfo

## Overview

Edit Custom Protection Rules






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `ModifyWafProtectionCustomerInfo`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.dezai.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |No|
| **RuleSetID** | int | Rule ID |**Yes**|
| **RuleName** | string | Rule Name |**Yes**|
| **RiskRank** | string | Rule Risk Level |**Yes**|
| **RuleAction** | string | Action after rule matching |**Yes**|
| **RuleNum** | int | Number of Rule Matching Conditions |**Yes**|
| **RiskType** | string | Types of risks, scan, loopholes, xss, cc, sql, exec, webshell, infoleak, eaa, protocol, other |**Yes**|
| **FullDomain** | string | Domain name, one of the domain name and domain ID must be filled in. |**Yes**|
| **Rule.N** | string | Rule Matching Conditions |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|




## Example

### Request Example
    
```
https://api.dezai.com/?Action=ModifyWafProtectionCustomerInfo
&ProjectId=org-xxx
&FullDomain=www.test.com
&RuleSetID=45000
&RuleName=test
&RiskRank=Low
&RuleAction=Deny
&RuleNum=1
&Rule.0=Field:SrcIp,Operator:Contain,Content:2.2.2.3
&RiskType=scan
&Location=ymHsDEzr
```

### Response Example
    
```json
{
  "Action": "ModifyWafProtectionCustomerInfoResponse",
  "RetCode": 0
}
```





