Request to change permissions on a type
name | data type | constraints | description |
---|---|---|---|
perms | array of TypePermissionItem | List of permissions to change | |
roles | array of RoleItem | List of role assignments to change | |
subGroups | boolean | required boolean | True to set permissions also to subgroups, false for only the given group |
subObjects | boolean | required boolean | True to set permissions also for subobjects, false for only the given object |
Example
{ "perms" : [ { "type" : "linkoverview", "label" : "...", "description" : "...", "category" : "...", "value" : true, "editable" : true }, { "type" : "create", "label" : "...", "description" : "...", "category" : "...", "value" : true, "editable" : true } ], "roles" : [ { "id" : 12345, "label" : "...", "description" : "...", "value" : true, "editable" : true }, { "id" : 12345, "label" : "...", "description" : "...", "value" : true, "editable" : true } ], "subGroups" : true, "subObjects" : true }