---
ai:
  exclude: true
search:
  tags:
    - Content Restrictions
    - GET
seo:
  description: >-
    Returns info about all restrictions by… Reference for the GET
    /rest/api/content/{id}/restriction/byOperation endpoint in the Confluence
    Data Center API.
sidebar:
  label: Get all restrictions by Operation
  badge: GET
title: Get all restrictions by Operation
type: openapi-operation
---
Returns info about all restrictions by operation.

`GET /rest/api/content/{id}/restriction/byOperation`

**Responses**

- `200` — Returns a JSON representation of the restrictions group by operations.

Response example, 200:

```json
{
  "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"
  }
}
```
