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

KeyDatatypeRequiredDescription
expandstringA 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

{&quot;results&quot;:[{&quot;operation&quot;:&quot;copy&quot;,&quot;_expandable&quot;:{&quot;restrictions&quot;:&quot;incididunt anim ut id nulla&quot;,&quot;content&quot;:&quot;cupidatat&quot;},&quot;_links&quot;:{},&quot;restrictions&quot;:{&quot;user&quot;:{&quot;results&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;start&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;limit&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;size&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;group&quot;:{&quot;results&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;start&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;limit&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;size&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;_expandable&quot;:{&quot;user&quot;:&quot;et laborum&quot;,&quot;group&quot;:&quot;qui consequat&quot;}},&quot;content&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;}},{&quot;operation&quot;:&quot;copy&quot;,&quot;_expandable&quot;:{&quot;restrictions&quot;:&quot;ullamco velit Lorem&quot;,&quot;content&quot;:&quot;culpa esse sit anim aliqua&quot;},&quot;_links&quot;:{},&quot;restrictions&quot;:{&quot;user&quot;:{&quot;results&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;start&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;limit&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;size&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;group&quot;:{&quot;results&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;start&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;limit&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;size&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;_expandable&quot;:{&quot;user&quot;:&quot;ut&quot;,&quot;group&quot;:&quot;ad Ut&quot;}},&quot;content&quot;:{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Content detected\u003e&quot;}}],&quot;start&quot;:8238998,&quot;limit&quot;:-43753388,&quot;size&quot;:-64805454,&quot;restrictionsHash&quot;:&quot;ut commodo&quot;,&quot;_links&quot;:{}}