Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
What should be the value for Category Permissions in v1?
mahe
New
I'm looking at the doc for v1 and I feel like the docs doesn't quite clearly states what the structure of the value should be. For e.g. in
/api/v1/roles/add.ext
It says the Permissions
should be an array type. Great but what does the array look like? In the description it says
"Custom permissions for the category. This must be an array with one item per role. Each item contains a role ID and the permissions to set."
It does try to mention that it takes role ID and up to this point I thought it was a RoleID
of roles but what does this "Permission to set" mean?
Has anyone tried this endpoint? Would greatly help if we knew what we need to pass to that field.
Thanks a ton.
0
Comments
As luck would have it - I found right after posting this question.
It's apparently an object - something of this type
as each role item where obviously 1 is true and 0 is false.