Help with RCP Config.Set from mDash website

need help with params docs. did not find online.
what is the diffence between key and config??

calling:

{“key”: “aec.ungroup_sensors”, “config”: “”, “value”: “false”, “level”: 0, “save”: true, “try_once”: false, “reboot”: false}

response:

{
“id”: 29,
“method”: “Config.Set”,
“params”: {
“key”: “aec.ungroup_sensors”,
“config”: “”,
“value”: “false”,
“level”: 0,
“save”: true,
“try_once”: false,
“reboot”: false
},
“error”: {
“code”: 400,
“message”: “not allowed”
}
}

anybody can help me on this?? thanks

Hey @cavamora , this forum doesn’t seem to get much action not sure why.

I’ve not used the GUI in mDash to call RPC commands really, especially not config.set

Not sure if it’s helpful but typically I’d use the mos command directly, like this, and it doesn’t have any key provided

mos call Config.Set '{"config": {"my_device": {"debug": true}}}' --port ws://192.168.1.128/rpc

hi! thanks for the reply! i also use with mos too. but in this case ia have to do it remotely

Go to your device’s manage screen. There you’ll find a section named “RPC”, select the function you need to call and you’ll get a Corresponding curl command:. At the end of it there is an access_token parameter. You can find it in the Keys tab of the dashboard. If there is none, generate one.
Copy the curl command fill with the actual parameters and the access token.

hi! i did this!
the problem is that i dont know what to put in the fields KEY and CONFIG.

i think KEY is the parameter i want to change… but dont know what to pass in CONFIG. allways get error on return

example

Config.Get works fine!