Upload a file to a knowledge folder
# cURL
curl --request POST \
--url https://api.langdock.com/knowledge/{folderId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: multipart/form-data' \
--form 'url=<string>' \
--form file='@example-file'POST /knowledge/{folderId}
Description
Upload a file to a knowledge folder.
Headers
Authorization (string, required) API key as Bearer token. Format "Bearer YOUR_API_KEY"
Path Parameters
folderId (string, required) The ID of the knowledge folder
Body (multipart/form-data)
file (file) The file to upload
url (string) The associated URL
Response
200 — File uploaded successfully

