API: Creating Categories with Custom Permissions

On Shape is trying to add some automation on their side to build custom categories. They ran into a problem as it seems

If I want to create them with a custom permission right from the start, I cannot access them since I have not added any permissions. Do you guys have some documentation about this and what request body I am to send to apply a custom permission. I have to build one in the UI first (which everyone can see until I edit it and change to a custom permission.

Any input to this would be helpful as I am building some on-boarding automation and this is the only manual part of it.

It's the same behaviour in the UI - you can only enable custom permission when you edit an existing category, it can't be done when you create a new category. Why is that exactly? Is there a way to accomplish this via API?

Comments

  • This is a bit of extra info that might help but I had essentially asked this question on behalf of OpenText to be able to scale the mass updating of category permissions.

    This was the task:

    In short, it seems like the way to do it by updating the role's permission, not the categories. @Ryan was the one who gave the explanation.