---
title: "Update Source"
method: PUT
path: "/api/knowledge/sources/{source_id}"
---

# Update Source

`PUT /api/knowledge/sources/{source_id}`

Update the extracted text of a source and re-index it in OpenAI.
Steps: update DB text → remove old OpenAI file → upload new one → update source record.

## Path parameters

- `source_id` string, required

## Request body

- KnowledgeUpdateSourceRequest
  - `text` string, required
  - `title` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/nexa/apis/farm-intel-api.md) · [All operations](https://skmtc.dev/nexa/apis/farm-intel-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nexa/farm-intel-api/revisions/b1933769082d/schema)
