List of permissions
name | data type | constraints | description |
---|---|---|---|
items | array of TypePermissions | List of type permissions | |
messages | array of Message | Messages contained in the response (which should be shown to the user) | |
hasMoreItems | boolean | required boolean | True if more items are available to get (if paging was used) |
responseInfo | ResponseInfo | ||
numItems | number | required int | Get total number of items available |
perms | map of array of Permission | User permissions on the returned items, if applicable and requested |
Example
{ "items" : [ { "type" : "...", "id" : 12345, "channelId" : 12345, "label" : "...", "description" : "...", "perms" : [ { "type" : "updategroup", "label" : "...", "description" : "...", "category" : "...", "value" : true, "editable" : true }, { "type" : "assignroles", "label" : "...", "description" : "...", "category" : "...", "value" : true, "editable" : true } ], "roles" : [ { "id" : 12345, "label" : "...", "description" : "...", "value" : true, "editable" : true }, { "id" : 12345, "label" : "...", "description" : "...", "value" : true, "editable" : true } ], "children" : true, "editable" : true }, { "type" : "...", "id" : 12345, "channelId" : 12345, "label" : "...", "description" : "...", "perms" : [ { "type" : "updateschedules", "label" : "...", "description" : "...", "category" : "...", "value" : true, "editable" : true }, { "type" : "linktemplates", "label" : "...", "description" : "...", "category" : "...", "value" : true, "editable" : true } ], "roles" : [ { "id" : 12345, "label" : "...", "description" : "...", "value" : true, "editable" : true }, { "id" : 12345, "label" : "...", "description" : "...", "value" : true, "editable" : true } ], "children" : true, "editable" : true } ], "messages" : [ { }, { } ], "hasMoreItems" : true, "responseInfo" : { "responseCode" : "OK", "responseMessage" : "...", "property" : "..." }, "numItems" : 12345, "perms" : { "property1" : [ "publish", "translatepages" ], "property2" : [ "createitems", "createform" ] } }