code-health

Refactoring Opportunities

One page of the ranked queue, with its facets and rollup.

facets count the whole set at the requested status rather than the page, because they are the chips a person clicks to widen the filter. An unrecognized filter value is reported in ignored_arguments rather than rejected, so a stale bookmark degrades to the default view.

get/snapshots/{snapshot_id}/refactoring/opportunities

Request

Path parameters

snapshot_idstring required

Query parameters

refactoring_typestring nullable

Lead refactoring type, or several comma-separated.

statusstring

open | acknowledged | resolved | false_positive

confidencestring nullable

low | medium | high

effortstring nullable

S | M | L | XL

file_pathstring nullable

One repo-relative path.

searchstring nullable

Substring of a file path.

mechanicalboolean

Only sets with a mechanical step.

viewstring

canonical | file_spread | diversified

orderstring nullable

queue | rank | health | effort | file

step_previewinteger

Steps inlined per row.

limitinteger
offsetinteger

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 20 revisions of this API.