v3

latestOpenAPI 3.1.02026-08-08123192255.1 KB
external-v2-deals

Update Deal Index Fact

Update one editable SOT value on a deal.

Use POST /index/facts as the default path for setting user-supplied metric values. This PATCH route is for targeted edits by sot_id or for promoting a specific existing observation_id. Editability is enforced server-side by lev-ai-backend against MetricDefinition.editable; non-editable metrics surface as 422.

patch/api/external/v2/deals/{deal_id}/index/facts

Path parameters

deal_idinteger required

Request body

sot_idstring required

Prefixed SOT id from index/search results.

valuestring nullable

Direct user-supplied replacement value.

observation_idinteger nullable

Existing observation to promote as the SOT value.

Response

Successful Response

request_idstring required
timestampstring required