AnsweredAssumed Answered

What is the correct JSON syntax for a streamsets/value request via HTTP POST?

Question asked by pruettm on Apr 7, 2017
Latest reply on Apr 7, 2017 by tramachandran

Using the PI Web API, I'm trying to retrieve multiple values using streamsets/value and providing multiple webids. 

 

This works using HTTP GET, but I can't find the correct JSON syntax to make a POST request.  I receive the error "Properties [WebId, Value] are required but not supplied."

 

What is the correct JSON syntax for a streamsets/value request via HTTP POST?

 

My POST data looks like this:

 

[ { "WebId": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } ]

Outcomes