I checked the doc for Maker API. It gives an example of calling a command and passing an argument to the command. But the example only has 1 argument (called "secondary value" in the example).
https://docs.hubitat.com/index.php?title=Maker_API
/devices/[device id]/[command]/[secondary value]
This is the most powerful endpoint, as it can send a command to the authorized [device id] including an optional [secondary value]
Example, to turn on a light device 1
I am trying to call the command LockCodes.setCode() command, which takes 3 arguments:
https://docs.hubitat.com/index.php?title=Driver_Capability_List#LockCodes
I tried a few things but always get error back from API:
"error": true,
"type": "AppException",
"message": "Not Found"
Here's some things I tried. I am passing the first two arguments, "codeposition"=31, and "pincode"=6789 (the third argument, "name" is optional).
https://cloud.hubitat.com/api/XXXXX/apps/33/devices/65/setCode/31/6789
https://cloud.hubitat.com/api/XXXXX/apps/33/devices/65/setCode/31/"6789"
https://cloud.hubitat.com/api/XXXXX/apps/33/devices/65/setCode/31/%226789%22