Content restrictions

Get restrictions by operation

Returns restrictions on a piece of content by operation. This method is similar to Get restrictions except that the operations are properties of the return object, rather than items in a results array.

Permissions required: Permission to view the content.

get/wiki/rest/api/content/{id}/restriction/byOperation

Request

  • Base URL
    https://your-domain.atlassian.net
  • URL
    https://your-domain.atlassian.net/wiki/rest/api/content/{id}/restriction/byOperation
  • Auth
    • HTTP basic
    • or OAuth 2
      Authorization code: https://auth.atlassian.com/authorize
      Token URL: https://auth.atlassian.com/oauth/token scopes: read:confluence-content.all

Path parameters

idstring required

The ID of the content to be queried for its restrictions.

Query parameters

expandstring[]

A multi-value parameter indicating which properties of the content restrictions to expand.

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

Response

Returned if the requested restrictions are returned.

object required

Changes

No recorded changes to this operation across all 2 revisions of this API.