Create a Knowledge Source
Adds a knowledge source for the organization.
title, the sourceType, and the source itself: inline content, a sourceUrl to crawl, or the blobPath returned by Upload a Knowledge Source File. Returns the created source, whose indexStatus tracks indexing progress.Authorizations
JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"
Body
The knowledge source to create, including its sourceType and the matching content, blobPath, or sourceUrl.
Request model for creating or updating a knowledge source.
The title of the knowledge source.
The description of what the knowledge source covers.
Where the content comes from: text you send, an uploaded file, or a URL.
0, 1, 2, 3, 4, 5 The text of the knowledge source, when the content is sent inline.
The path returned by Upload a Knowledge Source File, when the content comes from a file.
The URL to index, when the content comes from a website.
Response
OK
Response model for a knowledge source.
The unique identifier of the knowledge source.
The title of the knowledge source.
The description of what the knowledge source covers.
Where the content comes from: text you send, an uploaded file, or a URL.
0, 1, 2, 3, 4, 5 The text of the knowledge source, when the content is sent inline.
The path returned by Upload a Knowledge Source File, when the content comes from a file.
The URL to index, when the content comes from a website.
How far along indexing the source is, such as Pending, Indexed, or Failed.
0, 1, 2 The UTC date and time the source was last indexed.
The reason indexing failed, when indexStatus is a failure.
Whether the knowledge source is active and used for generation.
The UTC date and time the knowledge source was created.
The UTC date and time the knowledge source was last modified.