Skip to content

Update a detection

Request

Security
x-api-key
Path
idstringrequired

Unique identifier for the detection

Bodyapplication/jsonrequired

Update a detection's archive status.

archivedboolean

The desired archive status for the detection.

Example:true
classificationstring or null

The desired classification for the detection.

Enum:"TRUE_POSITIVE""BENIGN_TRUE_POSITIVE""FALSE_POSITIVE"
Example:"FALSE_POSITIVE"
curl -i -X PATCH \
  'https://eu1.api.pushsecurity.com/v1/detections/{id}' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{}'

Responses

OK

Headers
any
Bodyapplication/json
idstring

Identifier of the detection

Example:"c478966c-f927-411c-b919-179832d3d50c"
employeeIdstring

Identifier for the employee that triggered the detection.

Example:"37cda962-7e78-49bc-8721-1becd16276a3"
browserIdstring

Identifier of the browser that was used when the detection was triggered.

Example:"2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0"
severitystring

The severity of the detection.

Enum:"LOW""MEDIUM""HIGH""CRITICAL"
Example:"HIGH"
detectionTypeany(DetectionType)

The type of detection

Enum:"BLOCKED_URL""CUSTOM""PHISHING""MALICIOUS_BROWSER_EXTENSION""MALWARE_DELIVERY""STOLEN_CREDENTIALS"
Example:"PHISHING"
responsestring

The response to the detection.

Enum:"BLOCKED""EMPLOYEE_IGNORED_WARNING""EMPLOYEE_WARNED""NOT_BLOCKED"
Example:"BLOCKED"
classificationstring or null

The classification of the detection.

Enum:"TRUE_POSITIVE""BENIGN_TRUE_POSITIVE""FALSE_POSITIVE"
Example:"FALSE_POSITIVE"
creationTimestampinteger

When the detection was created. Formatted as a UNIX timestamp (in seconds).

Example:1698604061
archivedboolean

Whether the detection has been archived.

Example:true
Response
{ "id": "c478966c-f927-411c-b919-179832d3d50c", "employeeId": "37cda962-7e78-49bc-8721-1becd16276a3", "browserId": "2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0", "severity": "HIGH", "detectionType": "PHISHING", "response": "BLOCKED", "classification": "FALSE_POSITIVE", "creationTimestamp": 1698604061, "archived": true }