Changind Audio Output Device via CLI (SSH)

id like to have a script that will ultimately be triggered by a remote control press which will change the audio output device from HDMI to my HiFi Berry Digi (and vice-versa).
ive issued the following command, and the audio device does not change, for example from HDMI to HiFi Berry

curl -H “Content-type: application/json” -X POST -d ‘{“jsonrpc”:“2.0”,“method”:“Settings.SetSettingValue”, “params”:{“setting”:“audiooutput.audiodevice”,“value”:“PI:HDMI”},“id”:1}’ http://localhost:3005/jsonrpc

what am i doing wrong here ?