AnsweredAssumed Answered

Authentication in Web API Batch Requests Using Service Account

Question asked by mrosiak on Nov 8, 2018
Latest reply on Dec 12, 2018 by mrosiak

I am using a service account to access PI AF using the Web API.  In my HTTP client batch request, I specify a user/password, but I suspect that the credentials aren't being passed along to each of the requests in the batch.  The account has full access to the AF database, and DisableWrites is False in the Web API configuration. I am attempting to do an Attribute Update (PATCH).


When I examine the response, I see the error message: "Cannot complete the operation because the user does not have rights to write to Element 'A-123' with UniqueID ...


Do I need to include the authentication in each request in the batch, and if so, what is the syntax for doing so?  Is there something else that may be amiss?