---
title: "Auto Price"
method: POST
path: "/api/v1/admin/quotes/{quote_id}/auto-price"
tags: ["admin-quotes"]
---

# Auto Price

`POST /api/v1/admin/quotes/{quote_id}/auto-price`

Apply AI estimates to all line items on a quote.

For each part in the quote's project that has an AI cost estimate
(from DFM analysis), a line item is created or updated with the
mid estimate plus the optional margin.

Parts without AI estimates are skipped.  The ``is_human_reviewed``
flag is **not** set — an admin must still explicitly review and
approve the quote before it can be sent.

## Path parameters

- `quote_id` string, uuid, required

## Request body

- AutoPriceRequest — Request body for the auto-price endpoint. ``margin_pct`` is added on top of the AI mid estimate. A value of ``10`` means unit_price = mid * 1.10.
  - `margin_pct` number — Percentage margin to add on top of the AI mid estimate (0-100)

## Response `200`

Successful Response

- AutoPriceResponse — Result of the auto-price batch operation.
  - `applied` integer, required — Number of parts that had AI estimates applied
  - `skipped` integer, required — Number of parts without AI estimates (skipped)
  - `skipped_parts` string[], required — Names of the parts that were skipped
  - `total_estimated` number, required — Sum of all line item totals after applying auto-pricing

## Other responses

- `422` — Validation Error

---

[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)
