Remove pages or a folder from a Website source
Remove pages or a folder from a Website source. The config changes now: a page added by address leaves the list; one found by a site's crawl (or a whole folder) is skipped in later syncs. Their chunks and tree entries go in a background task (task_id), after any running sync; a 500 with code queue_failed when the config was saved but the task couldn't be queued. A page an older url, crawler or sitemap source stored without its address is matched by the address on its chunks; when none is found it is still removed, by its path, and the config is left as it is.
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).
application/json- body
directory_path?stringTree path of a folder to remove
file_paths?array<string>Tree paths of pages to remove, up to 1000
source_id*stringSource ID
Success
curl -X POST 'http://localhost:7091/api/website/remove' \ -H 'Content-Type: application/json' \ -d '{ "source_id": "string"}'POST /api/sources/reingest POST
Re-run ingestion for a source β e.g. to recover a stalled embed flagged by the reconciler, or to apply a chunking change. A source with no stored files (Website, crawler, connector) is synced from its stored config instead; either way the answer is `{success, task_id}` and the task's source.ingest events carry that task_id. A connector source can be refused with a 409: code connection_missing when its connection was removed, reconnect_needed when the owner must sign it in again. Honours an Idempotency-Key header: a repeat with the same key runs nothing new, and a rebuild's repeat answers with the first request's task_id. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.
POST /api/sources/from_attachments POST
Creates a Knowledge source from chat attachments the caller already uploaded. The stored originals are copied into a new source and ingested like an upload (a zip contributes its files); the files together may not exceed the upload request limit (413). Returns the source id and the ingest task id; progress arrives as `source.ingest.*` events for that source id. Honors an optional `Idempotency-Key` header: a repeat request with the same key within 24h returns the first request's source and task ids without copying the files or queueing a second ingest. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.