I'm getting an integer error when using the "perms" parameter to add a role to a business workspace even though i'm passing an integer ( "perms":36995 ). On the flip side, if I use the "permissions" parameter and spell out the permissions ( "permissions":["see","see_contents"] ), then it works as expected.
The result of the below call adds the role of name "TESTROLE" with correct permissons to the workspace specified, however, the permissions aren't applied to the child documents as expected and I get the error.
I would like to use the perms parameter as its less expensive than converting the binary value to a string.
Any ideas?
POST /otcs/llisapi.dll/api/v2/businessworkspaces/1392393/roles HTTP/1.1
Host: <<contentserverhostname>>
otcsticket: /6jWtsv0rZRZYD4G7iziLhvN9nXLvy6/4zL/fzQQ0isgCfoJfaRKNaA3fler0KBKqD5r87Xhipq0LQCvor15DOzQZVYdPDtDgq8SeXiH80DGxU14lUp3lA==
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
body={"perms":36995,"name":"TESTROLE","apply_to":3,"include_sub_types":[144]}