How to change control schemes with code?

I want to change control scheme to gamepad for example without using the auto-switch toggle?
can I modify playerinput.currentcontrolscheme?
Thank you

I think I got it playerInput.SwitchCurrentControlScheme(“GamePad”);