Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: RESTful Web Service API - Write (PUT)
PostPosted: Sun Mar 06, 2016 3:56 pm 

Joined: Mon Apr 08, 2013 11:50 am
Posts: 13

Offline
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:
{"Code":404,"Message":"Resource not found"}


The request looks like this (from Fiddler)

Code:
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


 Profile  
 
 Post subject: Re: RESTful Web Service API - Write (PUT)
PostPosted: Thu Mar 31, 2016 12:36 pm 

Joined: Mon Apr 08, 2013 11:50 am
Posts: 13

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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: