Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
syntax that was working fine before Rev6 like :
http://localhost:8080/Thingworx/Things/
'a thing'
/Properties/'a property name'
?method=put&appKey='apply value'
&value='a value'
doesn't work anymore (no effect but no error !!). get method is still working but not the put method.
i probably missed something but didn't find clear information.
does anybody have clear explaination ? and solution ?
thanks
Richard
Hi Richard,
This REST API call is correct and used to work in Thingworx 5.4.
However, in Thingworx 6.0, method POSTand PUT are no longer allowed on the URL line.
You can choose to set the value of this property either from the Thingworx Composer or you can use the SetPropertyValues service and bind it to a widget in your mash-up.
Regards,
Costin
Costin is absolutely correct.
This was changed in TW 6.0 for a reason though, because there was CSRF (Cross Site Request Forgery) risk.
You can use a regular REST API tool as well like Postman etc.
Please see the release notes for 6.0 in the Java doc for information on CSRF.
Hello Pai, Costin,
it was unfortunately the way we used/test small devices connectivity like for Arduino or libelium waspmote (http call with put method) with C or C++ simple code when SDK has trouble. (due to not enough space for such code and associated libraries)
In that case, what is the workaround ?
regards
Richard
Hi Richard,
Sorry for the late response but I saw your last post just now. In case you run in trouble due to limited memory on the Arduino board (which I think is a very frequent case, especially if you use the C SDK) you can expand the board's memory. For example, for an Arduino Yun , you can do that by using a microSD card. Here you can find the instructions on how to expand the Yun's disk space: Arduino - ExpandingYunDiskSpace
I hope this helps.
Costin
I think the documentation here should be updated to reflect this change accurately - http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/thingworx1002.html#styler-id1.1.1.11.6.1