https://discord.gg/botpress logo
when uploading files with the file API,
# 🌎general
h
when uploading files with the file API, does it add them to the default knowledgebase. or is it possible to create a new knowledgebase via the api?
l
When uploading files w/ File API, they are not automatically added to a default KB. You can specify which Knowledge Base the file should be added to by including this in the tags object : **"source"**: "knowledge-base" "kbId" : "desiredkbid"
@high-room-45079
h
interesting, is it possible to create a new KB , or must it be an existing one
l
From what I can see on my end it must be an existing one!
h
good to know! thank you
https://botpress.com/docs/api-reference/files-api/openapi/createKnowledgeBase i just found this, would this allow me to create a new knowledgebase via api for file upload via api?
well it works. that makes my life infinitely easier
l
Good catch! Ill note this for future refrences 🫡