POST /api/sources/{source_id}/graphrag/enable
Enable GraphRAG on a source: flips its config to graphrag mode and enqueues graph extraction over its embedded chunks. Requires VECTOR_STORE=pgvector and GRAPHRAG_ENABLED. Write access required (owner/editor). The config kind cannot be set to graphrag via the config PATCH endpoint.
Personal access token scope: sources:write.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
source_id*stringSuccess
curl -X POST 'http://localhost:7091/api/sources/string/graphrag/enable'Create an LLM-editable wiki source POST
Create an LLM-editable wiki source. No ingestion task is enqueued; pages are authored via the WikiTool. An optional initial_content seeds /index.md and triggers its per-page re-embed. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.
Add a chunk text's hash to the source's owner allowlist, or remove it POST
Mark a flagged chunk safe from prompt-injection screening for agents using this source, or undo that. Needs chunk-edit access. Keyed by the chunk text, so editing the chunk drops the mark. At most 1000 chunks per source. Returns `{success, content_hash, allowed, count}`. Args: source_id: The source. Returns: Response: `{"success", "content_hash", "allowed", "count"}`, a 400 for a bad body or a full allowlist, or the access error. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.