Skip to main content
POST
/
knowledge-base
/
datasets
/
{dataset_id}
/
sources
/
pattern
Add sources by pattern
curl --request POST \
  --url https://api.anyreach.ai/knowledge-base/datasets/{dataset_id}/sources/pattern \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pattern": "https://docs.example.com/help/%",
  "type": "URL"
}
'
{
  "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
pattern
string
required

Pattern matched against source names.

type
enum<string>
required

Whether the source is an uploaded file or a crawled URL.

Available options:
FILE,
URL

Response

Matching sources attached and queued.