2 Replies Latest reply on Nov 8, 2018 4:44 PM by mrosiak

    Using HTTP POST to Update via PI Web API

    mrosiak

      Hi All,

       

      I am attempting to use the PI Web API to update an AF attribute, but I have a REST client that does not natively support the PATCH method.

       

      I understand there is a header that can be added to override the method from POST to PATCH, but this doesn't appear to be working.

       

      I've tried both "X-HTTP-Method-Override: PATCH" and "X-PIWEBAPI-HTTP-METHOD: PATCH".

       

      Any suggestions?

       

      OR is there a way to update using CreateAttribute that updates the specified attribute instead of creating a new child?

       

      Thanks!

      Mike