### Answer
Based on the available sources, I don't have specific documentation about an API endpoint to dynamically update or change the knowledge base assigned to an existing agent.
The sources show how to create [(1) ](
) , retrieve [(2) ](
) , and list [(3) ](
) knowledge bases, but don't include an agent update endpoint that modifies the knowledge base assignment.
However, the sources do mention that you can assign knowledge bases at the node level in conversation flows [(4) ](
) , which allows different nodes to use different knowledge bases for more accurate, context-specific responses .
Check out these potentially useful sources that may have more information about agent configuration:
- [Create Knowledge Base](
)
- [Get Knowledge Base](
)
- [Node KB, Role-Based Access, Outbound SMS API & More](
)
Would you like me to provide a general answer about typical patterns for updating agent configurations via API?