v2
latestOpenAPI 3.1.02026-07-2670186350.6 KBknowledge
Register File Upload
Register a file upload for a knowledge base by its id
Registering a file upload is a three step process:
- Get upload URL (GET /v2/knowledge/{knowledge_base_id}/upload_url)
- Upload file to the URL
- Register file (POST /v2/knowledge/{knowledge_base_id}/register_file)
post/knowledge/{knowledge_base_id}/register_file
Path parameters
knowledge_base_idstring uuid required
The id of the knowledge base to register the file for
The id of the knowledge base to register the file for
Request body
Example request
{
"filename": "example.pdf",
"content_type": "application/pdf",
"metadata": {
"category": "legal",
"client": "acme"
}
}Response
Successful Response