---
title: "Recompute Pricing Calibration"
method: POST
path: "/api/v1/admin/pricing-calibration/recompute"
tags: ["admin-pricing"]
---

# Recompute Pricing Calibration

`POST /api/v1/admin/pricing-calibration/recompute`

Manually trigger a full recompute of all Track B calibration buckets.

Equivalent to the Phase 5 backfill script. Use cases:
  - Force a refresh after editing the Track A pricing config
    (the calibration rows reference older config versions)
  - Diagnostics / cache-busting after data fixes
  - Initial seeding on a fresh environment

``recompute_bucket`` itself only flushes — this endpoint owns the
transaction boundary and commits at the end so all bucket upserts
persist atomically.

Auth: ``settings:edit``.

## Response `200`

Successful Response

- RecomputeReport — Returned from recompute_all_buckets / manual recompute admin endpoint.
  - `total_buckets` integer, required
  - `buckets_with_high_confidence` integer, required
  - `buckets_with_medium_confidence` integer, required
  - `buckets_with_low_confidence` integer, required
  - `buckets_with_no_confidence` integer, required
  - `sample_size_histogram` object, required
  - `flagged_outliers_total` integer, required
  - `skipped_count` integer — Line items skipped (no geometry, deleted parts, etc.)
  - `duration_seconds` number, required

---

[API](https://skmtc.dev/prototyping/apis/prototyping-io-api.md) · [All operations](https://skmtc.dev/prototyping/apis/prototyping-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prototyping/prototyping-io-api/revisions/f4a0079fbb57/schema)
