AnsweredAssumed Answered

PI Web API 2016 syntax changes?

Question asked by jlangan on Jul 6, 2016
Latest reply on Jul 11, 2016 by ray

I recently updated to PI Web API 2016 (from 2015 R2) .  I have a simple Streams UpdateValue message that now returns a 400 error: "Properties [Value] are required but were not supplied."  

Request:

POST https://servername/piwebapi/streams/A0EgN2mNZXN-ECJeVrprWGNWA_lUWziGO5BGAvAAVXQF4BgqAmtA6gXOVE3CDFDLDc0GQUElWTVxVU0VSREJcRkFDSUxJVFlcSE9NRVxQT1dFUnxJTlNUQU5UQU5FT1VT/value HTTP/1.1

Accept: application/json

Content-Type: application/json; charset=utf-8

 

{"timestamp":"2016-06-03T21:07:33.0000000Z","value":2.907}

 

 

Response:

HTTP/1.1 400 Bad Request

Content-Length: 69

Content-Type: application/json; charset=utf-8

Server: Microsoft-HTTPAPI/2.0

Date: Wed, 06 Jul 2016 15:28:17 GMT

 

{"Errors":["Properties [Value] are required but were not supplied."]}

 

I looked in the help for both version and did not see any changes to the call.  Am I missing something simple here?

 

Thanks,

Joey

Outcomes