Skip to main content
POST
Save (create or update) a source type definition

Path Parameters

name
string
required
Pattern: ^[a-z][a-z0-9_-]*$

Body

application/json

Complete definition of an operational Source Type.

Read from /workspace/source_types/{name}.yaml by the knowledge-worker and written by the knowledge-api via POST /v1/knowledge/source_types/{name}.

Minimum required fields: name, duckdb_table, text_fields.

name
string
required

Unique source type identifier (slug, no spaces).

duckdb_table
string
required

DuckDB table name that contains the operational records.

display_name
string
default:""

Human-readable label shown in the Console UI.

label
string
default:""

Alternative label used by the API (alias for display_name).

id_field
string
default:id

Column used as unique record identifier.

sla_minutes
integer
default:60

Maximum lag (in minutes) before the worker flags a delay.

Required range: x >= 1
preprocessors
string[]

List of preprocessors applied before chunking.

text_fields
TextFieldDef · object[]

Text fields to be chunked and indexed in Qdrant.

Minimum array length: 1
structured_fields
string[]

Columns stored as structured metadata (for filtering).

payload_fields
string[]

Columns included in the chunk payload (not indexed).

filter_fields
string[]

Columns available as filters in search queries.

Field-to-entity mappings for memory graph propagation.

Response

Source type YAML written to workspace

Response for POST /v1/knowledge/source_types/{name}.

name
string
required
path
string
required
created
boolean
required

True when the file was newly created; False when it was overwritten.