# httpPut error 400

**URL:** <https://forum.inductiveautomation.com/t/httpput-error-400/20734>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 10, 2018, 5:34am UTC](https://forum.inductiveautomation.com/t/httpput-error-400/20734 "2018-11-10T05:34:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfraker](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dfraker](https://forum.inductiveautomation.com/u/dfraker)\
**Post date:** [November 10, 2018, 5:34am UTC](https://forum.inductiveautomation.com/t/httpput-error-400/20734/1 "2018-11-10T05:34:11Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![dfraker](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@dfraker](https://forum.inductiveautomation.com/u/dfraker)\
**Post date:** [November 12, 2018, 10:22pm UTC](https://forum.inductiveautomation.com/t/httpput-error-400/20734/2 "2018-11-12T22:22:03Z")

</div>

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!!!
