I think the error is not related to the categoryName or templateName inputs. They are optional:
categoryNameSpecify that included attributes must have this category. The default is no category filter.
templateNameSpecify that included attributes must be members of this template. The default is no template filter.
If you take a look at the documentation generated using the Swagger spec, you will notice that only the WebId is required for this operation. Are you using the correct WebID?
I'm using the right webID. If in the request call I add categoryName=MyCategory it works fine but if I have something like categoryName= or categoryName=* then I get the errors I described above.
Of course if in the request I do not add categoryName at all then that works fine as well.
I guess the question is if I can have categoryName in the request even though I may not need to filter by category all the time.
I think this is the expected behavior. As the categoryName is optional, it doesn't make sense to use it with "*". In this case, you just don't use this optional parameter.
Nevertheless, after testing against PI Web API 2018 with the url: https://marc-web-sql.marc.net/piwebapi/streamsets/F1EmbvBs-758HkKnOzuxolJRlg-Jnwgsge5hGAwwAVXX0eAQTUFSQy1QSTIwMTZcQUZQQVJUTkVSQ09VUlNFV0VBVEhFUlxDSVRJRVNcQ0hJQ0FHTw/interpolated?categoryName=*
I have received the following error:
"Attribute category named '*' not found in Asset Database 'AFPartnerCourseWeather'."
Which version of PI Web API are you using? Is this the method you are calling?
That's the method and that's the exact same error I'm getting. I'm using PI web API 2017.
I was trying to use same url independently of the inputs to my function. But sounds like I will have to build a URL for each case (if input has category filter or not, if it has template filter or not, etc)...