while working with /api/v1/apps/{appId}/grants I noticed that for some apps for which grants (scopes) cannot be given the API responds with 404. I would like to avoid making redundant API calls, meaning not calling for grants for apps which cannot have grants. The question is how do I distinguish the ones which can have grants from the ones that cannot? I check the API documentation but did not find any info regarding that topic. I hope there is a param or a field in apps API (/api/v1/apps) that will help me filter them and retrieve the ones for which I can call for grants.
I also receive 200 for the /api/v1/apps/{appId}/grants though it does not apply to the filter suggested by you. And I do not want to miss any data. Should I perhaps filter by signOnMode == OPENID_CONNECT? Looking at the documentation I cannot do so in the request but I can also simply just parse the response and filter post request.