Get restrictions
GET {{baseUrl}}/api/content/:id/restriction?expand=<string>&expand=<string>&start=0&limit=100
Returns the restrictions on a piece of content.
Permissions required: Permission to view the content.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
expand | string | A multi-value parameter indicating which properties of the content | |
restrictions to expand. By default, the following objects are expanded: | |||
restrictions.user , restrictions.group . |
-
restrictions.user
returns the piece of content that the restrictions are applied to. -
restrictions.group
returns the piece of content that the restrictions are applied to. -
content
returns the piece of content that the restrictions are applied to. | |expand
| string | | A multi-value parameter indicating which properties of the content restrictions to expand. By default, the following objects are expanded:restrictions.user
,restrictions.group
. -
restrictions.user
returns the piece of content that the restrictions are applied to. -
restrictions.group
returns the piece of content that the restrictions are applied to. -
content
returns the piece of content that the restrictions are applied to. | |start
| number | | The starting index of the users and groups in the returned restrictions. | |limit
| number | | The maximum number of users and the maximum number of groups, in the returned restrictions, to return per page. Note, this may be restricted by fixed system limits. |
RESPONSES
status: OK
{"results":[{"operation":"copy","_expandable":{"restrictions":"incididunt anim ut id nulla","content":"cupidatat"},"_links":{},"restrictions":{"user":{"results":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"start":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"limit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"size":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"group":{"results":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"start":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"limit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"size":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"_expandable":{"user":"et laborum","group":"qui consequat"}},"content":{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"}},{"operation":"copy","_expandable":{"restrictions":"ullamco velit Lorem","content":"culpa esse sit anim aliqua"},"_links":{},"restrictions":{"user":{"results":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"start":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"limit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"size":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"group":{"results":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"start":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"limit":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"size":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"_expandable":{"user":"ut","group":"ad Ut"}},"content":{"value":"\u003cCircular reference to #/components/schemas/Content detected\u003e"}}],"start":8238998,"limit":-43753388,"size":-64805454,"restrictionsHash":"ut commodo","_links":{}}