AnsweredAssumed Answered

PI Web API - Ignore Category/Template Name

Question asked by Oscar_Garcia Champion on Aug 8, 2018
Latest reply on Aug 8, 2018 by Oscar_Garcia

Hello,

Is there a way to ignore the parameters categoryName/tempateName in a GetInterpolated request if they are null?

 

I have a python function that gets the different parameter inputs for the request.  User can optionally specify category or template name but looks the GetInterpolated request  doesn't like when categoryName/templateName parameters are null. It fails with error {'Errors': ['A value is required but was not present in the request.']}.

 

Usually the wildcard '*' means anything but looks that doesn't work either. It fails with ["Attribute category named '*' not found in Asset Database].

 

Thanks,

Oscar

Outcomes