---
title: "Update Insight"
method: PATCH
path: "/insight/{insight_id}"
tags: ["insights"]
---

# Update Insight

`PATCH /insight/{insight_id}`

## Request

- Base URL: `https://api.overfit.de` (the document declares no server; this is the origin it was published from)
- URL: `https://api.overfit.de/insight/{insight_id}`
- Auth: one of:
  - OpenID Connect (`https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration`)
  - API key in header `X-API-Key`

Update a insight. Accepts InsightUpdate Schema as input.

## Path parameters

- `insight_id` string, required

## Request body

- InsightUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `generative_model` string, nullable
  - `temperature` number, nullable
  - `text_qa_template` string, nullable
  - `top_k` integer, nullable

## Response `200`

Successful Response

- Insight
  - `id` string, required
  - `name` string, required
  - `description` string, nullable
  - `embedding_model` string, required
  - `generative_model` string, required
  - `temperature` number, required
  - `text_qa_template` string, nullable
  - `top_k` integer
  - `vector_store_id` string, required
  - `time_created` string, date-time, required
  - `sub` string, uuid, required
  - `sources` Source[]
    - `id` string, required
    - `name` string, nullable
    - `description` string, nullable
    - `insight_id` string, required
    - `time_created` string, date-time, required
    - `source_type` 'WEBSITE' | 'REMOTE_DOCUMENT' | 'SEARCH' | 'DOCUMENT_UPLOAD', required
    - `public` boolean
    - `keywords` string, nullable
    - `path` string, required
    - `length` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval.md) · [All operations](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/llms.txt) · [OpenAPI document](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/revisions/0055f7fe41e5?raw)
