Skip to main content
PATCH
Update a knowledge base source

Authorizations

X-API-KEY
string
header
required

Path Parameters

agentId
string
required
sourceId
string
required

Body

application/json

Partial update to a knowledge base source.

Only fields included in the body are changed. Only syncInterval and variantIds can be cleared with null; null for any other field is rejected.

targetEnvSandbox
boolean | null

Whether the source is used in sandbox

targetEnvPrerelease
boolean | null

Whether the source is used in pre-release

targetEnvLive
boolean | null

Whether the source is used in live

variantIds
string[] | null

Variants the source applies to. If provided, replaces the current list; if omitted, the list is unchanged. An empty list or null applies the source to all variants

name
string | null

Display name of the source

Minimum string length: 1
sourceUrl
string | null

Website only. URL the crawl starts from. Changing it starts a crawl. Rejected if any pinned page is on a different host

Minimum string length: 1
pageUrls
string[] | null

Website only. Pages to add to the pinned list; existing pinned pages are kept. Pinning a new page starts a crawl

Maximum array length: 100
pageLimit
integer | null

Website only. Maximum number of pages each crawl visits. Lowering it does not remove pages already indexed

Required range: 1 <= x <= 100
syncInterval
integer | null

Website only. Interval between scheduled re-crawls, in seconds (1 to 30 days). Send null to stop scheduled re-crawls

Required range: 86400 <= x <= 2592000

Response

Successful response

The saved source, and whether a crawl was queued.

source
object
required

The saved source

syncRequested
boolean
required

False if the source was saved but a required crawl could not be queued. Creating a website source always requires a crawl; an update requires one only when sourceUrl changes or a new page is pinned. True otherwise

Last modified on November 25, 2026