v1

latestOpenAPI 3.0.12026-07-13130168404.3 KB
Content restrictions

Add restrictions

Adds restrictions to a piece of content. Note, this does not change any existing restrictions on the content.

Permissions required: Permission to edit the content.

post/wiki/rest/api/content/{id}/restriction

Path parameters

idstring required

The ID of the content to add restrictions to.

Query parameters

expandstring[]

A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.

  • restrictions.user returns the piece of content that the restrictions are applied to. Expanded by default.
  • restrictions.group returns the piece of content that the restrictions are applied to. Expanded by default.
  • content returns the piece of content that the restrictions are applied to.

Request body

OR

Response

Returned if the requested restrictions are added.

startinteger required
limitinteger required
sizeinteger required
restrictionsHashstring required

This property is used by the UI to figure out whether a set of restrictions has changed.

_linksGenericLinks required