Save a Website source's entries, skips, link setting and sync schedule
Save a Website source's entries, skips, link setting and sync schedule. Applies at the next sync. An address the save adds is checked as in /api/website/pages: one that isn't a web address (user:password@ credentials, a malformed host, a control character) is a 400 with code invalid_address, as is a new skip rule with a control character; a new path with one is a 400 with code invalid_config. What the source already stores is saved 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
entries*array<>What the source fetches: {url, mode: page|site, max_pages, path_prefix, include_subdomains, discovery: auto|sitemap|links, sitemap_url}
keep_links?booleanKeep the URL of links inside sentences in page text; left out, the stored setting is kept
skip?array<string>Pages (url) or sections (https://host/path/*) to leave out; left out, the stored list is kept, and [] clears it
source_id*stringSource ID
sync_frequency?stringnever, daily, weekly or monthly
Success
curl -X POST 'http://localhost:7091/api/website' \ -H 'Content-Type: application/json' \ -d '{ "entries": [ {} ], "source_id": "string"}'Uploads remote source for vectorization POST
Uploads remote source for vectorization. Honors an optional `Idempotency-Key` header: a repeat request with the same key within 24h returns the original cached response without re-enqueuing. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.
Updates an existing chunk in the document PUT
Updates an existing chunk in the document. 409 (code source_busy) while a sync or page change on the source runs. [Personal access token](/API/personal-access-tokens) scope: `sources:write`.