curl --request POST \
--url https://api.upon-ai.com/api/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": 123,
"name": "<string>",
"description": "<string>",
"sources": [
{
"type": "text",
"text": "<string>",
"url": "<string>",
"filename": "<string>",
"contentType": "<string>",
"base64": "<string>"
}
]
}
'