httpPut error 400

I am trying to use system.net.httpPut() and I cannot get it to work. I can run it in Postman, but it won’t work in the scripting console. I am connecting to a Kepware server here is what I have so far,

urlA = “http://10.9.8.7:12345/config/v1/project/channels/TEST/devices/TEST
username = “Administrator”
password = “”
paramS = {“PROJECT_ID” :3619227900 , “fisher_roc_ethernet.DEVICE_TARGET_IP” : “192.168.200.101”}
print system.net.httpPut(urlA, paramS, username=username, password=password)

here is my postman parameters,
{
“PROJECT_ID” : 3619227900,
“fisher_roc_ethernet.DEVICE_TARGET_IP” : “192.168.200.101”
}
header Content-Type is application/json

I’ve also tried to use system.util.jsonEncode() but it did not make a difference.

What am I missing, I feel like it is something simple? Thanks for the help

I got it…

Instead of using
- print system.net.httpPut(urlA, paramS, username=username, password=password)

I used
- print system.net.httpPut(urlA, putData = paramS, username=username, password=password)

The manual shows putData as a keyword argument, but in the examples it doesn’t call it the same, or at all.

I hope this helps the next person!!!