# Update a detection

Endpoint: PATCH /v1/detections/{id}
Version: v1
Security: x-api-key

## Path parameters:

  - `id` (string, required)
    Unique identifier for the detection

## Request fields (application/json):

  - `archived` (boolean)
    The desired archive status for the detection.
    Example: true

  - `classification` (string)
    The desired classification for the detection.
    Enum: "TRUE_POSITIVE", "BENIGN_TRUE_POSITIVE", "FALSE_POSITIVE"

## Response 200 fields (application/json):

  - `id` (string)
    Identifier of the detection
    Example: c478966c-f927-411c-b919-179832d3d50c

  - `employeeId` (string)
    Identifier for the employee that triggered the detection.
    Example: 37cda962-7e78-49bc-8721-1becd16276a3

  - `browserId` (string)
    Identifier of the browser that was used when the detection was triggered.
    Example: 2a2197de-ad2c-47e4-8dcb-fb0f04cf83e0

  - `severity` (string)
    The severity of the detection.
    Enum: "LOW", "MEDIUM", "HIGH", "CRITICAL"

  - `detectionType` (string)
    The type of detection
    Enum: "BLOCKED_URL", "CUSTOM", "PHISHING", "MALICIOUS_BROWSER_EXTENSION", "MALWARE_DELIVERY", "STOLEN_CREDENTIALS"

  - `response` (string)
    The response to the detection.
    Enum: "BLOCKED", "EMPLOYEE_IGNORED_WARNING", "EMPLOYEE_WARNED", "NOT_BLOCKED"

  - `classification` (string)
    The classification of the detection.
    Enum: "TRUE_POSITIVE", "BENIGN_TRUE_POSITIVE", "FALSE_POSITIVE"

  - `creationTimestamp` (integer)
    When the detection was created. Formatted as a UNIX timestamp (in seconds).
    Example: 1698604061

  - `archived` (boolean)
    Whether the detection has been archived.
    Example: true

