List Permissions of an Item

get

/content/management/api/v1.1/items/.by.slug/{slug}/permissions

Lists all permissions (allowed actions) of a given item.

Request

Path Parameters
  • Slug value of the latest management Item. Any special characters in slug must be encoded.
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ItemSubResourceListAction
Type: object
Item SubResource.
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : Action
Type: object
Action
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to list permissions (allowed actions) of an item.

curl -i -X GET -H 'Accept:application/json' 'https://host:port/content/management/api/v1.1/items/.by.slug/{slug}/permissions'

Example

This lists all permissions (allowed actions) of item with slug '3000000040002-item-c1'.

/content/management/api/v1.1/items/.by.slug/3000000040002-item-c1/permissions

Response Body

{
	    "data": [
	        {
	            "action": "view"
	        },
	        {
	            "action": "update"
	        },
	        {
	            "action": "create"
	        },
	        {
	            "action": "delete"
	        }
	    ],
	    "links": [
	        {
	            "href": "http://<hostname>/content/management/api/v1.1/items/.by.slug/3000000040002-item-c1/permissions",
	            "rel": "self",
	            "method": "GET",
	            "mediaType": "application/json"
	        }
	    ]
      }  
Back to Top