Update Knowledge File

Update a knowledge file.

Parameters:
knowledge_file_id (int): The ID of the knowledge file to update
knowledge_file (KnowledgeFileUpdate): The updated knowledge file data
request (Request): The FastAPI request object
db (AsyncSession): The database session
organization_id (Optional[int]): The organization ID from the API key

Returns:
KnowledgeFile: The updated knowledge file

Raises:
HTTPException:
- 400: If organization ID is missing
- 404: If the knowledge file is not found or not accessible
- 422: If there's a validation error in the request body
- 500: If an unexpected error occurs during update

Language
Credentials
Header
Click Try It! to start a request and see the response here!