Skip to main content
POST
/
knowledge-base
/
datasets
/
{dataset_id}
/
sources
Add sources to a knowledge base
curl --request POST \
  --url https://api.anyreach.ai/knowledge-base/datasets/{dataset_id}/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_ids": [
    "3f8a...",
    "9c2b..."
  ]
}
'
{
  "detail": "Dataset not found"
}

Authorizations

Authorization
string
header
required

Personal access token. See Authentication.

Path Parameters

dataset_id
string<uuid>
required

The knowledge base ID.

Body

application/json
source_ids
string<uuid>[]
required

IDs of existing sources to attach.

Response

Sources attached and queued.