This URL deletes the domain name exceptions specified in the string list.
Resource URL
DELETE /advancedmalware?type=block
Request Parameters
URL Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| type | Hashtype. Can be allow or block. | String | Yes |
Payload Request Parameters:
| Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| hashes | List of file hashes | StringList | Yes |
Following fields are returned if the request parameters are correct, otherwise error details are returned.
| Field Name | Description | Data Type |
|---|---|---|
| status | Status. Set to 1 if the operation was successful. | Number |
Example
Request
DELETE https://<NSM_IP>/sdkapi/advancedmalware?type=block
Payload
{
"hashes":
["1aaaaaaaaaaaaaaaaaaaaaaaaaaaa16,
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa17",
"1aaaaaaaaaaaaaaaaaaaaaaaaaaaa18"]
}
Error Information
Response
{
"status": 1
}
Following error code is returned by this URL:
| S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
| 1 | 500 | 1001 | Internal error message: Internal server error |