Changing ekf2 parameters dynamically

Is there a way to change the ekf2 parameters programmatically?

I want the ekf2_aid_mask parameter to be set to 8 only when vision position estimates are available.
When it is not, I want it to be set to the default value of 1.

Thanks!