Website connector
Update a website connector
PATCH /knowledgeSource/websiteConnector/{id}
PATCH /knowledgeSource/websiteConnector/{id}
Updates a website connector. The excludePaths field has three mutually compatible inputs:
excludePaths— full replace (operator-edit form).addExcludePaths— append to the current excludePaths (set-union, deduped server-side).removeExcludePaths— remove from the current excludePaths (set-difference).
excludePaths is mutually exclusive with addExcludePaths/removeExcludePaths —
sending both in the same request returns 422. addExcludePaths and removeExcludePaths
can be combined in one request (add applied first, then remove).
Whenever excludePaths actually changes, Mind diffs old-vs-new and emits
knowledgeSourceChanged events: delete for newly-matching pages (now excluded),
create for newly-unmatching pages (now included). This keeps Cortex's Weaviate index
in sync immediately rather than waiting for the next periodic resync.
Path parameters
idintegerpathrequiredNo description.
Request body
namestringbodyNo description.
descriptionstringbodyNo description.
maxPagesintegerbodyNo description.
includePathsstring[]bodyNo description.
excludePathsstring[]bodyFull replace of the connector's excludePaths. Mutually exclusive with addExcludePaths/removeExcludePaths.
addExcludePathsstring[]bodyPaths to append to the current excludePaths (set-union, deduped). Mutually exclusive with excludePaths.
removeExcludePathsstring[]bodyPaths to remove from the current excludePaths (set-difference). Mutually exclusive with excludePaths.
scheduleEnabledbooleanbodyNo description.
frequencyenumbodyOptions: daily, weekly
Request Example
{
"name": "string",
"description": "string",
"maxPages": 1,
"includePaths": [
"string"
],
"excludePaths": [
"string"
],
"addExcludePaths": [
"string"
],
"removeExcludePaths": [
"string"
],
"scheduleEnabled": true,
"frequency": "daily"
}Responses
200 — Successful operation
Response Example
{
"success": true
}404 — Connector not found
422 — Invalid frequency value, or excludePaths combined with addExcludePaths/removeExcludePaths
500 — Internal error