Skip to main content
PATCH
Create or update a content source

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

kbId
string
required

Knowledge base to operate on. Get the ids from listMyKnowledgeBases.

Body

application/json

What to change on a content source, or the source to create.

configId
string

Source to change, as returned by listContentSources. Omit to create a new one — the id is assigned then and comes back in the response.

Example:

"6683f1c2a4b19e0012ab34cd"

enabled
boolean

A disabled source stays configured but is not crawled. Defaults to true on a new source.

Example:

true

startUrl
string

Where the crawl starts.

Example:

"https://ajuda.acme.com"

cron
string

When the crawl runs, as a cron expression. Leave empty to run it only on demand.

Example:

"0 0 3 * * *"

allowedDomains
string

Hosts the crawl may follow links into. Comma-separated.

Example:

"ajuda.acme.com"

pathFilter
string

Only crawl paths matching this. Leave empty for the whole site.

Example:

"/artigos"

excludePathFilter
string

Paths to never crawl, even when they match pathFilter.

Example:

"/artigos/rascunhos"

defaultScraperTag
string

Tag to apply to every entry this source imports.

Example:

"ajuda"

defaultScraperTopic
string

Topic to group every entry this source imports under.

Example:

"Autoatendimento"

type
enum<string>

Crawler to run this source on. Defaults to FIRECRAWL on a new source.

Available options:
SCRAPY,
FIRECRAWL,
CLOUDCHAT
maxAgeMs
integer<int64> | null

How old a previously fetched page may be before it is fetched again, in milliseconds. Omit to keep the current setting, send null to restore the crawler's default, send 0 to force a full re-crawl.

Example:

86400000

locales
string[]

Languages to keep when the site publishes several.

Languages to keep when the site publishes several.

Example:

Response

Every source of this knowledge base, as stored after the change.

startUrl
string
required

Where the crawl starts.

Example:

"https://ajuda.acme.com"

cron
string
required

When the crawl runs, as a cron expression. Empty means it only runs on demand.

Example:

"0 0 3 * * *"

allowedDomains
string
required

Hosts the crawl may follow links into. Comma-separated.

Example:

"ajuda.acme.com"

pathFilter
string
required

Only paths matching this are crawled. Empty means the whole site.

Example:

"/artigos"

excludePathFilter
string
required

Paths never crawled, even when they match pathFilter.

Example:

"/artigos/rascunhos"

defaultScraperTag
string
required

Tag applied to every entry this source imports.

Example:

"ajuda"

type
enum<string>
required

Crawler this source runs on.

Available options:
SCRAPY,
FIRECRAWL,
CLOUDCHAT
createdAt
string
required

When the source was configured (ISO-8601).

Example:

"2026-08-10T14:32:05"

configId
string

Use this id to update or delete this source.

Example:

"6683f1c2a4b19e0012ab34cd"

enabled
boolean

A disabled source stays configured but is not crawled.

Example:

true

defaultScraperTopic
string

Topic every entry this source imports is grouped under.

Example:

"Autoatendimento"

maxAgeMs
integer<int64>

How old a previously fetched page may be before it is fetched again, in milliseconds. Absent means the crawler's own default.

Example:

86400000

locales
string[]

Languages to keep when the site publishes several.

Languages to keep when the site publishes several.

Example:
updatedAt
string

When it last changed (ISO-8601). Absent until the first change.

Example:

"2026-08-10T18:20:41"