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

Get all restrictions for given operation

Returns info about all restrictions of given operation.

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

key of the operation.

idstringrequired

The id of the content

Query parameters
expandstring

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

limitstring

pagination limit.

startstring

pagination start.

Responses
200

Returns a JSON representation of the restrictions of given operation.

operationstring

The operation type

restrictionsRestrictions
Show properties
userPageResponseObject
Show properties
resultsobject[]

Results of the page response

startinteger<int32>

Start index of the page response

limitinteger<int32>

Limit of the page response

sizeinteger<int32>

Size of the results

groupPageResponseObject
Show properties
resultsobject[]

Results of the page response

startinteger<int32>

Start index of the page response

limitinteger<int32>

Limit of the page response

sizeinteger<int32>

Size of the results

get_linksLinks
Show properties
selfstring

Self link

basestring

Base link

contextstring

Context link

get_expandableExpandable
Show properties
contentstring

Content link

Try it
Server
Parameters
Request
curl -X GET 'http://example.com:7990/confluence/rest/api/content/string/restriction/byOperation/string' \
  -H 'Accept: application/json'
Response
{
  "operation": "read",
  "restrictions": {
    "user": {
      "results": [],
      "start": 0,
      "limit": 200,
      "size": 0
    },
    "group": {
      "results": [],
      "start": 0,
      "limit": 200,
      "size": 0
    }
  },
  "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"
  },
  "get_expandable": {
    "content": "/rest/api/content/2326529"
  }
}

Was this page helpful?