Page 1 of 1

RESTful Web Service API - Write (PUT)

Posted: Sun Mar 06, 2016 3:56 pm
by andis59
I'm trying to read and write Tag values from an external program using the RESTful Web Service API.

I have managed to get the read part to work, but not the Write!

What I can see my program is sending the PUT call as described in the Reference Manual, but all the response I get is

Code: Select all

{"Code":404,"Message":"Resource not found"}
The request looks like this (from Fiddler)

Code: Select all

PUT http://192.168.1.10/tags/laserLayout HTTP/1.1
Accept: application/json
User-Agent: RestSharp/105.2.3.0
Content-Type: application/json
Host: 192.168.1.10
Cookie: SID=866c831203
Content-Length: 36
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

{"name":"laserLayout","value":"222"}
Any ideas on what is wrong and how to fix it?

// Anders

Re: RESTful Web Service API - Write (PUT)

Posted: Thu Mar 31, 2016 12:36 pm
by andis59
I had a talk with Support and they can't get it to work either!

But it's possible to use the TagBatch command.
I can't get the getTag to work, but the putTag works.

No error message if you try to update a tag that doesn't exist!

Sort of a work around, but not very good!

Hope these bugs will get fixed!!!!