> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Act on a ThreatDown active detection: quarantine it, or scan the endpoint it was found on

> Send one action to ThreatDown for an active detection (`detectionId` from `getThreatDownActiveDetections`): `quarantine` acts on the detection itself; `scan` runs a threat scan of the endpoint the detection was found on and quarantines what it finds. ThreatDown queues a job that runs once the endpoint is online; the answer only carries the queued `jobId`, and the detection leaves the active detections at the next sync (every 5 minutes) once ThreatDown has cleared it. A detection that is no longer active is refused. ThreatDown active detections are the threats ThreatDown still finds on the company's devices, as Primo stored them at its last sync (every 5 minutes, once the company turned the alert sync on; a company without it has none). A detection leaves the list once ThreatDown no longer reports it. They are not the SentinelOne alerts (`getSentinelOneAlerts`), the MDM compliance alerts (`getComplianceAlerts`) nor the AI tools risks (`getAiFindings`).

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /edr/threatdown/active-detections/actions
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /edr/threatdown/active-detections/actions:
    post:
      tags:
        - Edr
      summary: >-
        Act on a ThreatDown active detection: quarantine it, or scan the
        endpoint it was found on
      description: >-
        Send one action to ThreatDown for an active detection (`detectionId`
        from `getThreatDownActiveDetections`): `quarantine` acts on the
        detection itself; `scan` runs a threat scan of the endpoint the
        detection was found on and quarantines what it finds. ThreatDown queues
        a job that runs once the endpoint is online; the answer only carries the
        queued `jobId`, and the detection leaves the active detections at the
        next sync (every 5 minutes) once ThreatDown has cleared it. A detection
        that is no longer active is refused. ThreatDown active detections are
        the threats ThreatDown still finds on the company's devices, as Primo
        stored them at its last sync (every 5 minutes, once the company turned
        the alert sync on; a company without it has none). A detection leaves
        the list once ThreatDown no longer reports it. They are not the
        SentinelOne alerts (`getSentinelOneAlerts`), the MDM compliance alerts
        (`getComplianceAlerts`) nor the AI tools risks (`getAiFindings`).
      operationId: runThreatDownDetectionAction
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RunThreatDownDetectionActionBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RunThreatDownDetectionAction_Output'
components:
  schemas:
    RunThreatDownDetectionActionBody:
      type: object
      properties:
        detectionId:
          description: >-
            The `detectionId` of the detection, as
            `getThreatDownActiveDetections` returns it
          type: string
          minLength: 1
        action:
          description: >-
            `quarantine` acts on the detection itself and moves the threat to
            quarantine. `scan` runs a threat scan of the endpoint the detection
            was found on and quarantines what it finds.
          type: string
          enum:
            - quarantine
            - scan
      required:
        - detectionId
        - action
    RunThreatDownDetectionAction_Output:
      type: object
      properties:
        action:
          description: >-
            `quarantine` acts on the detection itself and moves the threat to
            quarantine. `scan` runs a threat scan of the endpoint the detection
            was found on and quarantines what it finds.
          type: string
          enum:
            - quarantine
            - scan
        jobId:
          type: string
          description: The job ThreatDown queued, which runs once the endpoint is online
      required:
        - action
        - jobId
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.