---
title: "Refactoring Targets"
method: GET
path: "/snapshots/{snapshot_id}/health/refactoring-targets"
tags: ["code-health"]
---

# Refactoring Targets

`GET /snapshots/{snapshot_id}/health/refactoring-targets`

## Path parameters

- `snapshot_id` string, required

## Query parameters

- `biomarkers` string[], nullable
- `limit` integer
- `offset` integer
- `module` string, nullable
- `biomarker` string, nullable
- `min_severity` string, nullable
- `severity` string, nullable
- `dimension` string, nullable
- `status` string
- `search` string, nullable
- `only_hotspots` boolean
- `only_untested` boolean
- `only_failing` boolean
- `max_effort` string, nullable
- `sort` string
- `scope` string
- `counts` string

## Response `200`

Successful Response

- RefactoringTargetsResponse
  - `targets` RefactoringTarget[]
    - `file_path` string, required
    - `score` number, required
    - `nloc` integer
    - `module` string, nullable
    - `primary_biomarker` string
    - `primary_severity` string
    - `primary_reason` string, nullable
    - `primary_function` string, nullable
    - `primary_line_start` integer, nullable
    - `primary_line_end` integer, nullable
    - `primary_suggestion` string, nullable
    - `primary_finding_id` string
    - `total_impact` number
    - `finding_count` integer
    - `open_finding_count` integer
    - `biomarkers` string[]
    - `effort_bucket` string
    - `impact_per_effort` number
  - `total` integer
  - `finding_total` integer
  - `offset` integer
  - `limit` integer
  - `state` string
  - `reason` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-14** `c3d46dfc6e3d` — 8 breaking, 11 warning, 35 info
  - for the `query` request parameter `limit`, default value was changed from `20` to `200`
  - the `targets/items/biomarkers/items/` response's property type changed from `object` to `string` for status `200`
  - removed the required property `targets/items/biomarkers/items/biomarker_type` from the response with the `200` status
  - removed the required property `targets/items/biomarkers/items/file_path` from the response with the `200` status
  - …50 more

[Change history](https://skmtc.dev/repowise/apis/repowise-hosted-api/changes/snapshots/:snapshot_id/health/refactoring-targets/get.md)

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc.dev/repowise/apis/repowise-hosted-api/revisions/6bb9d0da77e3?raw)
