Can someone clarify how permissions are handled via the API? Our developer is specifically looking to understand how they are layered for the List Category rest api.
Here’s the use case if that helps. We have created a custom script to look for questions that have gone unanswered for 2+ hours in select sub-categories. It works great for public sub-categories, but restricted sub-categories are not returning in the list of categories.
Is there any documentation or anything else we need to do to pick up questions from restricted sub-categories?
Best answer by alex.timmermann
I assume you’re asking about the List Categories endpoint. As mentioned in our documentation, you need to pass the query string
?authorId=x, where x is the ID of a moderator with access to those categories. You can get that ID from the Control environment.
Please let me know if that worked for you!