Upload a file directly to a knowledge base.
This is a simplified alternative to the three-step upload process (get_upload_url -> upload to S3 -> register_file). Use this endpoint for smaller files or when you prefer a simpler API.
The file will be uploaded to S3 and queued for processing automatically.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the knowledge base to upload the file to
The file to upload
The chunk size to use for the document (number of characters)
The chunk overlap to use for the document (number of characters)
Optional JSON object metadata to attach to the file
"{\"category\": \"legal\", \"client\": \"acme\"}"