Update a knowledge source
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
Request
When the website import syncs. Replaces the whole schedule: hours, days and timezone. Wins over sync_frequency when both are sent. Website imports only.
Replace the CSS selectors the website import removes from each page. They apply from the next sync. Send null or [] to remove them. Omit to leave them unchanged. Website imports only. A request sent while a sync of the source runs returns 429. For the supported selectors, see Exclude page elements.
The paths the website import leaves out of a crawl, such as /blog. A path excludes that page and every page under it, it matches from the start of the URL path, and * matches any text. Replaces the whole list. Send null or an empty list to clear it. Omit to leave it unchanged. Applies from the next sync. Articles already imported from an excluded page stay. Website imports only.
Replace the source’s availability-rule template. Articles created after the change get the new template. Existing articles keep their own rules. Send null to remove the template. Omit to leave it unchanged.
Deprecated. Send sync_schedule instead. The server translates a frequency into a schedule: daily syncs every day. weekly keeps the source’s days when it has 1 to 6 of them, or else syncs on one weekday. Both keep the hours and the timezone the source already has; a source without hours gets 23:00 UTC. never syncs only on request and discards the hours and timezone. sync_schedule wins when both are sent.
Response
The source’s availability-rule template. Each new article created under the source whose request omits availability_rules gets it. null when the source has none.
Deletion lifecycle status of the knowledge source: deleting while an asynchronous deletion is in progress, delete_failed if the deletion failed. null when no deletion is in progress.
When the website import syncs. null on a source that is not a website import.
The CSS selectors the website import removes from each page before the page becomes an article. null when the source has none or is not a website import.
The paths the website import leaves out of a crawl. null when it has none, and on a source that is not a website import.