Change the active instrument via the API

Is it possible to change the selected instrument via the Renoise API? Couldn’t find anything in the API docs but wanted to make sure.

Thanks, this is exactly what I was looking for. Managed to re-assign the value as needed.