---
title: "Update Fact"
method: PUT
path: "/api/knowledge-graph/facts/{fact_id}"
tags: ["knowledge-graph", "knowledge-graph"]
---

# Update Fact

`PUT /api/knowledge-graph/facts/{fact_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/knowledge-graph/facts/{fact_id}`
- Auth: none declared

Update an existing fact.

## Path parameters

- `fact_id` integer, required

## Request body

- UpdateFactInput: Input for updating a fact.
  - `fact_key` string, nullable
  - `fact_value` string, nullable
  - `fact_type` string, nullable
  - `sensitivity` string, nullable

## Response `200`

Successful Response

- FactResponse: Fact response model.
  - `id` integer, required
  - `entity_id` integer, required
  - `entity_name` string, nullable
  - `entity_type` string, nullable
  - `fact_key` string, required
  - `fact_value` string, required
  - `fact_type` string
  - `status` string
  - `confirmation_count` integer
  - `sensitivity` string
  - `first_message_id` integer, nullable
  - `last_message_id` integer, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
