PermResource
Resource for reading and writing permissions
The following resources are part of this group:
/perm/{type}/{id}
Mount Point: /CNPortletapp/rest/perm/{type}/{id}
GET
Get the permission bits valid for the current user on the given object (and optionally for the given node)
Parameters
name | description | type | default |
---|---|---|---|
type | object type | path | |
id | object id | path | |
nodeId | optional node id | query | 0 |
type | optional type for which the check shall be done | query | -1 |
lang | optional language id | query | 0 |
Response Body
element: | permBitsResponse |
media types: | application/json |
permission bits response
POST
Set the permissions on the identified object according to the posted request
Parameters
name | description | type | default |
---|---|---|---|
type | object type | path | |
id | object id | path |
Request Body
element: | setPermsRequest |
media types: | */* application/xml application/json |
request
Response Body
element: | genericResponse |
media types: | */* application/xml application/json |
generic response
/perm/{perm}/{type}/{id}
Mount Point: /CNPortletapp/rest/perm/{perm}/{type}/{id}
GET
Check whether the user has permission perm on the object defined by type and id
Parameters
name | description | type | default |
---|---|---|---|
perm | permission | path | |
type | object type | path | |
id | object id | path | |
nodeId | node id | query | 0 |
Response Body
element: | permResponse |
media types: | application/json |
response containing the result