---
title: "Update Appraisal History Margin"
method: PATCH
path: "/api/ai-pricing/history/{appraisal_id}/margin"
tags: ["AI Pricer"]
---

# Update Appraisal History Margin

`PATCH /api/ai-pricing/history/{appraisal_id}/margin`

Persist an adjusted dealer margin onto an existing appraisal row.

Body: { margin_percent: number, min_margin_euros: number }. The seller
payout and commission are recomputed server-side from the stored
`market_value_likely`, so the saved figures always match the "Ajustar
Margem" panel. Tenant-scoped.

## Path parameters

- `appraisal_id` integer, required

## Headers

- `x-api-token` string, nullable

## Request body

- object

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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