Skip to main content
Nowledge MemNowledge Mem

Update Source

PATCH
/sources/{source_id}

Update a source's processing state.

Supported actions:

  • reparse re-extract and re-index the content.
  • ocr_reparse run or retry vision OCR for deterministic candidate PDF pages.
  • mark_stale flag the source as needing re-processing.

Path Parameters

source_id*Source Id

Query Parameters

space_id?|

Optional isolation space guard

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

sources_shared.py:174-183 (UpdateSourceRequest): legacy PATCH bodies carry a lifecycle action. Rust also accepts a target space_id for source moves; the query-string space_id remains the strict source-space guard.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/sources/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "chunk_count": 0,  "created_at": "string",  "error_message": "string",  "file_path": "string",  "id": "string",  "label_ids": [    "string"  ],  "lifecycle_state": "ingested",  "memory_count": 0,  "metadata": {},  "mime_type": "string",  "original_name": "string",  "parsed_path": "string",  "section_tree": "string",  "sha256": "string",  "size_bytes": 0,  "source_type": "string",  "source_url": "string",  "space_id": "default",  "summary": "string",  "updated_at": "string",  "version": 1}