How to set plugin audio routing via API?

hi, how do i change the plugin audio routing?