This URL imports the list of blocked fingerprints to the Manager.
Resource URL
PUT /domain/<domain_id>/filereputation/customfingerprints
Content-type value
multipart/form-data; boundary=<x>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain id | Number | Yes |
Payload Request Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| It holds the body parts object | Object | Yes |
Details of BodyPart[0]:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| It holds the finger print action object | Application/json | Yes |
Details of finger print action:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Action type can be "APPEND"/ "REPLACE" | String | Yes |
Details of BodyPart[1]:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| It holds the .csv file as input stream | Application/octet-stream | Yes |
Details of file:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Input stream of the csv file | ByteArrayInput Stream | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Status returned by updation | Number |
Example
Request
PUT https://<NSM_IP>/sdkapi/domain/0/filereputation/customfingerprints
Payload:
NSM-SDK-API: OEZDNzAwNUQ3OTM2MjUzM0I3QTBBREQ4MENFMzExMTM6MQ==
Accept: application/vnd.nsm.v1.0+json
Content-Type: multipart/form-data; boundary=Boundary_1_21363001_1362483936674
MIME-Version: 1.0
User-Agent: Java/1.6.0_25
Host: localhost:8888
Connection: keep-alive
Content-Length: 348
--Boundary_1_21363001_1362483936674
Content-Type: application/json
{"Action":"REPLACE"}
--Boundary_1_21363001_1362483936674
Content-Type: application/octet-stream
collectmail_notwo0a.pdf,1,MD5,075c8160789eb0829488a4fc9b59ed6c,description
putty_v0.60.exe,1,MD5,acdac6399f73539f6c01b7670045eec7,desc
--Boundary_1_21363001_1362483936674--
Response
{
"status":1
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 500 | 1101 | Internal server error |
2 | 404 | 1105 | Invalid domain |