Editing input axes

How do you edit the buttons assigned to an input axis in code?

Edit>Project Settings>Input

I need to know how to do it in code not in the GUI. As it turns out it looks like it’s not currently supported, there’s a request for it in the unity uservoice page