Skip to main content
PATCH
Update a knowledge base source

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Path Parameters

source
string
required

ID of the source.

Body

application/json

Pass only the object for the source's type. A link's URL can't change, so delete the source and add the new URL instead. Zoho Desk, Zendesk, Notion, and SharePoint sources only take auto_sync.

text
object
faq
object

The question and answer can be up to 8,000 characters together, not counting formatting.

zoho
object
zendesk
object
notion
object
sharepoint
object

Response

The source, with resync_pending: true if its content changed.

object
any
required
id
string
required
Example:

"0d1f6a3e-5b2c-4e8f-9a7d-3c6b1e2f4a5d"

agent
object
required

The agent this belongs to.

type
enum<string>
required

link is a web page, fetched when the source trains. text and faq are content you send. document is a file you upload first with Create a document upload. zoho, zendesk, notion, and sharepoint are Zoho Desk articles, Zendesk articles, Notion pages, and SharePoint files, added in the dashboard through a connection. The API can list, resync, and delete them, and change their auto_sync, but can't add them or change their content.

Available options:
link,
text,
faq,
document,
zoho,
zendesk,
notion,
sharepoint
status
enum<string>
required

pending sources are waiting to train, processing sources are training, processed sources are used in replies, and failed sources couldn't be trained. For failed sources, error says why.

Available options:
pending,
processing,
processed,
failed
error
string | null
required

Why training failed, if status is failed.

characters
integer | null
required

The number of the plan's knowledge base characters the source uses. For links, documents, and connected sources, known once the source is trained.

resync_pending
boolean
required

Whether the source is queued to retrain after a resync, edit, or auto-sync.

last_synced_at
string<date-time> | null
required

Time at which the source was last trained.

created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required

Only for link sources.

text
object

Only for text sources.

faq
object

Only for faq sources.

document
object

Only for document sources.

zoho
object

Only for zoho sources.

zendesk
object

Only for zendesk sources.

notion
object

Only for notion sources.

sharepoint
object

Only for sharepoint sources.