external-v2-deals

Update Deal Index Fact

Changed on

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

Request

  • Base URL
    https://api.lev.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.lev.com/api/external/v2/deals/{deal_id}/index/facts
  • Auth
    none declared

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.

ordernumber nullable

Per-row display order for multi-instance metrics.

Response

Successful Response

request_idstring required
timestampstring required

Changes

    • info

      added the new optional request property

    • info

      added the optional property / to the response with the status