POST
/v1/knowledge-base/files/uploadUpload a knowledge base file
Uploads a file and creates a knowledge base file record in the specified project. Send the request as multipart/form-data with a file object and displayName.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
projectIdstringrequired
The identifier of the project in which to create the knowledge base file record.
Multipart form data containing the file and its display name.
displayNamestringrequired
The name to display for the uploaded file.
fileobjectrequired
The uploaded file details, including its filename, file data, and type.
200Returns the result of the file upload and knowledge base file record creation.
Error handling
projectId identifies the project for the upload. The body must include displayName and file; the file object must include filename, data, and type, with type set to file.