List Knowledge Bases Linked To Data Source
This method allows you to list all knowledge bases linked to a specific data source.
This method is useful if you want to understand which knowledge bases are using a data source - for example, to understand which knowledge bases are referencing a data source and need to be unlinked in order to allow deletion.
data_source_id
after
before
limit
offset
order
set_num_objects
name
Successful Response
{
"object": "string",
"has_more": false,
"num_objects": 0,
"data": [
{
"id": "string",
"state": "string",
"knowledge_base": {
"id": "string",
"name": "string",
"description": "string",
"data_origin_type": "string",
"object": "string",
"created_at": 0,
"last_updated_at": 0,
"next_index_refresh_at": 0
}
}
],
"first_id": "string",
"last_id": "string"
}
Object type, which is always list
.
True, if the server may have more objects than returned in the response.
Total number of objects that match the request. Note that this field is populated only if requested by the user (see set_num_objects
request parameter).
List of knowledge bases linked to a data source.
ID of the first element in the list (if any)
ID of the last element in the list (if any)
Invalid data source ID.
An invalid ID was passed for paginating results.
Validation Error
"HTTPValidationError Object"
detail
curl -H 'Authorization: <value>' https://{api_host}/api/v1/control/data-sources/{data_source_id}/knowledge-bases