I used api to setparametervalues for a non-exist parameter, but no error returned

Hi All,
I used curl to setparametervalues for a non-exist parameter, but no error returned.

curl -i ‘http://10.89.224.76:7557/devices/0000CA-DG3450A-8BG2XC57H505155/tasks?timeout=3000&connection_request’ -X POST --data ‘{“name”: “setParameterValues”, “parameterValues”: [[“Device.ManagementServer.Upgrades.1”,1]]}’
HTTP/1.1 200 OK
GenieACS-Version: 1.2.5+20210312233623
Content-Type: application/json
Date: Thu, 09 Sep 2021 07:44:13 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked

{“name”:“setParameterValues”,“parameterValues”:[[“Device.ManagementServer.Upgrades.1”,1]],“device”:“0000CA-DG3450A-8BG2XC57H505155”,“timestamp”:“2021-09-09T07:44:12.368Z”,"_id":“6139bb4c3f692b51d3b1a49b”}

Can you be more specific about what you are trying to do? Are you trying to set a parameter that the vendor doesn’t expose via discovery but still allows you to set? If so, genieacs doens’t support that.

From looking at the parameter values you are trying to set, you need to add an instance first. To the best of my knowledge, this can only be accomplished via provision scripts.

Device.ManagementServer.Upgrades is a boolean parameter.

If I set this parameter to string data, like this:
curl -i ‘http://10.89.224.76:7557/devices/0000CA-DG3450A-8BG2XC57H505155/tasks?timeout=3000&connection_request’ -X POST --data ‘{“name”: “setParameterValues”, “parameterValues”: [[“Device.ManagementServer.UpgradesManaged”,test]]}’

I got this response: curl: (52) Empty reply from server

I can’t get the error code 9007 INVALID_PARAMETER_VALUE.

You are getting the error because you are sending a random unquoted string instead of a boolean value.

curl -i 'http://10.89.224.76:7557/devices/0000CA-DG3450A-8BG2XC57H505155/tasks?timeout=3000&connection_request' -X POST --data '{"name": "setParameterValues", "parameterValues": [["Device.ManagementServer.UpgradesManaged", true]]}'

Also, please use triple backticks ``` on a new line to create code blocks when you are pasting commands into the forum. This way Discuss doesn’t turn normal quotes into curly quotes.