Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get all restrictions by Operation

Returns info about all restrictions by operation.

GET/rest/api/content/{id}/restriction/byOperation
Path parameters
idstringrequired

The id of the content

Query parameters
expandstring

A comma separated list of properties to expand on the content properties. Default value: group.

Responses
200

Returns a JSON representation of the restrictions group by operations.

restrictionsobject

Map of operation to OperationRestriction, representing the restrictions by operation

get_linksLinks
Show properties
selfstring

Self link

basestring

Base link

contextstring

Context link

Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/content/string/restriction/byOperation' \
  -H 'Accept: application/json'
Response
{
  "restrictions": {
    "read": {
      "operation": "read",
      "restrictions": {
        "user": {
          "results": [],
          "start": 0,
          "limit": 200,
          "size": 0
        },
        "group": {
          "results": [],
          "start": 0,
          "limit": 200,
          "size": 0
        }
      },
      "_links": {
        "self": "https://instenv-320828-cq6e.instenv.internal.atlassian.com/rest/api/content/2326529/restriction/byOperation/read"
      },
      "_expandable": {
        "content": "/rest/api/content/2326529"
      }
    },
    "update": {
      "operation": "update",
      "restrictions": {
        "user": {
          "results": [],
          "start": 0,
          "limit": 200,
          "size": 0
        },
        "group": {
          "results": [],
          "start": 0,
          "limit": 200,
          "size": 0
        }
      },
      "_links": {
        "self": "https://instenv-320828-cq6e.instenv.internal.atlassian.com/rest/api/content/2326529/restriction/byOperation/update"
      },
      "_expandable": {
        "content": "/rest/api/content/2326529"
      }
    }
  },
  "get_links": {
    "self": "https://instenv-320828-cq6e.instenv.internal.atlassian.com/rest/api/content/2326529/restriction/byOperation/read",
    "base": "https://instenv-320828-cq6e.instenv.internal.atlassian.com",
    "context": "string"
  }
}

Was this page helpful?