# Get target overview

Target detail overview for UI 3.0: findings/issues tiles, scan coverage, and issue-type x severity matrix. Served from target_summary + latest execution (dummy data until store wiring).

Endpoint: GET /sto/api/v2/targets/{id}/overview
Version: 1.0
Security: 

## Query parameters:

  - `accountId` (string, required)
    Harness Account ID
    Example: "abcdef1234567890ghijkl"

  - `orgId` (string, required)
    Harness Organization ID
    Example: "example_org"

  - `projectId` (string, required)
    Harness Project ID
    Example: "example_project"

  - `variantId` (string)
    Optional variant scope; when set, overview reflects that variant's latest execution
    Example: "xyz987zyx654wvu321tsr9"

## Path parameters:

  - `id` (string, required)
    Target ID
    Example: "abcdef1234567890ghijkl"

## Response 200 fields (application/json):

  - `baselineVariantId` (string)
    Baseline variant id when set
    Example: "abcdef1234567890ghijkl"

  - `branchesCount` (integer, required)
    Number of scanned variants/branches for this target
    Example: 3

  - `executionId` (string)
    Harness Execution ID
    Example: "abcdef1234567890ghijkl"

  - `hasShiftLeftScan` (boolean, required)
    True when the scoped execution includes at least one ShiftLeft product scan

  - `isBaseline` (boolean, required)
    Whether the scoped variant is the baseline
    Example: true

  - `issueFindingsMatrix` (object, required)
    Cross-tab of counts by issue type and severity, with column totals and grand total.
    Example: {"columnTotals":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"grandTotal":31,"rows":[{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14}]}

  - `issueFindingsMatrix.columnTotals` (object, required)
    Counts by severity, sourced from target_summary.
    Example: {"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0}

  - `issueFindingsMatrix.columnTotals.critical` (integer, required)
    Critical severity count
    Example: 3

  - `issueFindingsMatrix.columnTotals.high` (integer, required)
    High severity count
    Example: 4

  - `issueFindingsMatrix.columnTotals.info` (integer, required)
    Info severity count
    Example: 1

  - `issueFindingsMatrix.columnTotals.low` (integer, required)
    Low severity count
    Example: 2

  - `issueFindingsMatrix.columnTotals.medium` (integer, required)
    Medium severity count
    Example: 5

  - `issueFindingsMatrix.columnTotals.unassigned` (integer, required)
    Unassigned severity count

  - `issueFindingsMatrix.grandTotal` (integer, required)
    Sum of all cells
    Example: 31

  - `issueFindingsMatrix.rows` (array, required)
    One row per issue type
    Example: [{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14}]

  - `issueFindingsMatrix.rows.issueType` (string, required)
    Issue/scan type (e.g. SAST, SCA, SECRET)
    Example: "SAST"

  - `issueFindingsMatrix.rows.severityCounts` (object, required)
    Counts by severity, sourced from target_summary.
    Example: {"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0}

  - `issueFindingsMatrix.rows.total` (integer, required)
    Row total (sum of severity buckets)
    Example: 14

  - `issueNewDelta` (integer)
    Change in cumulative_open_issues_count vs the previous execution of the same target variant (current - previous). Issues card 'new' delta. Null when no previous execution exists.
    Example: 3

  - `issueRemediatedDelta` (integer)
    Change in cumulative_remediated_issues_count vs the previous execution of the same target variant (current - previous). Issues card 'remediated' delta. Null when no previous execution exists.
    Example: 1

  - `issueSeverityCounts` (object, required)
    Counts by severity, sourced from target_summary.
    Example: {"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0}

  - `name` (string, required)
    Target name
    Example: "NodeGoat"

  - `occurrenceFindingsMatrix` (object, required)
    Cross-tab of counts by issue type and severity, with column totals and grand total.
    Example: {"columnTotals":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"grandTotal":31,"rows":[{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14},{"issueType":"SAST","severityCounts":{"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0},"total":14}]}

  - `occurrenceNewDelta` (integer)
    Change in cumulative_open_occurrences_count vs the previous execution of the same target variant (current - previous). Findings card 'new' delta. Null when no previous execution exists.
    Example: 4

  - `occurrenceRemediatedDelta` (integer)
    Change in cumulative_remediated_occurrences_count vs the previous execution of the same target variant (current - previous). Findings card 'remediated' delta. Null when no previous execution exists.
    Example: 2

  - `occurrenceSeverityCounts` (object, required)
    Counts by severity, sourced from target_summary.
    Example: {"critical":3,"high":4,"info":1,"low":2,"medium":5,"unassigned":0}

  - `packages` (object)
    OSS and container package counts from Qwiet streamlined scan.
    Example: {"container":0,"oss":128,"risky_oss":1,"vulnerable_container":0,"vulnerable_oss":18}

  - `packages.container` (integer, required)
    Total number of container packages

  - `packages.oss` (integer, required)
    Total number of OSS packages
    Example: 128

  - `packages.risky_oss` (integer, required)
    Number of OSS packages with at least one OSS risk
    Example: 1

  - `packages.vulnerable_container` (integer, required)
    Number of container packages with at least one vulnerability

  - `packages.vulnerable_oss` (integer, required)
    Number of OSS packages with at least one vulnerability
    Example: 18

  - `scanTypes` (array, required)
    Scan types present (scan coverage chips)
    Example: ["SAST","SCA","SECRET"]

  - `scannedAt` (integer)
    Timestamp of the most recent scan, in milliseconds since Unix epoch
    Example: 1751793300000

  - `targetId` (string, required)
    Target id (echoes path {id})
    Example: "abcdef1234567890ghijkl"

  - `targetUrl` (string)
    Target URL from execution_summary metadata.repositoryUrl for the scoped variant's latest execution. Omitted when not set.
    Example: "https://github.com/example/NodeGoat"

  - `type` (string, required)
    Target type
    Enum: "container", "repository", "instance", "configuration"

  - `variantId` (string)
    Variant id for the scoped overview row (requested variant, or target_summary.variant_id on the default path)
    Example: "xyz987zyx654wvu321tsr9"

  - `variantName` (string)
    Variant name for the scoped row (e.g. branch name)
    Example: "main"

## Response 400 fields (application/json):

  - `message` (string, required)
    Example: "Not Found"

  - `status` (integer)
    Example: 404


