Skip to content

Bulk Create Knowledge Items

POST /knowledge-bases/{kb_id}/items

A small batch, written now, answered with the rows.

The nested path is the exception annex 05 §1.2 allows and the reason is the same one it gives: the base is not a filter here, it is the thing being written into. Reading items stays flat at /knowledge-items?kb_id=…, because three of the four placements have no kb_id to nest under.

NameInTypeNotes
kb_idpathstring (uuid)required—
FieldTypeNotes
itemsKnowledgeItemBulkEntry[]required—
StatusDescriptionBody
201Successful ResponsePage_KnowledgeItemView_
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/knowledge-bases/{kb_id}/items \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"items": [
{}
]
}'
FieldTypeNotes
itemsKnowledgeItemView[]required—
next_cursorstring | nulloptional—
totalinteger | nulloptional—