---
title: "Update Source"
method: PATCH
path: "/insight/{insight_id}/source/{source_id}"
tags: ["sources"]
---

# Update Source

`PATCH /insight/{insight_id}/source/{source_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}/source/{source_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 source. A Source is allways associated with an insight and can not be created without an insight.
Accepts Insight ID (ins_), Source ID (src_) and SourceUpdate Schema as input.

## Path parameters

- `insight_id` string, required
- `source_id` string, required

## Request body

- SourceUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `public` boolean, nullable
  - `keywords` string, nullable

## Response `200`

Successful Response

- 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)
