API version: 0.3.0

---

# GET /\<uuid>/access — Get element access

Endpoint answers two questions about a single element, which can be a node or a relation:

1. What may I do with the element?
2. Which users and groups may do what with the element?

The answer is a short list per access type (`read`, `search`, `create`, `update`, `delete`, `govern` and `execute`),
which fits into user interfaces like "Alice and Editors can edit", "public" or "read only for group Y". It follows the
rules of the [access model](/reference/access-model.md), nothing else is decided here.

Anybody who can read the element may ask. Elements which the current user can not read do not exist for them, the answer
is `404`.

## Reading the list

For every access type the response lists the users and groups which hold it. The list is kept short:

- A group is listed instead of its members. Users and groups which are (also through other groups) a member of a listed
  group are not listed again for the same access type.
- This is done per access type: a user who can read the element through a group, but who was also granted update access
  directly, is only listed under `update`.
- Only users and groups which the current user can read are shown. If a group which holds the access is hidden from the
  current user, its members which the current user can read are listed instead. The anonymous user is always shown.
- Ids are sorted ascending. `principals` contains exactly the listed ids, with their type and name.
- `execute` only has an effect for executable elements like [saved searches](/guide/search/saved-searches.md); it is always
  empty for relations.
- A group does not hold update, delete, govern or execute access to its own node, as its members do not get these
  through
  membership. The same applies to a user, who holds all access types to their own user node.

`public` is `true` if the anonymous user can read the element, i.e. everybody can. It does not depend on what the
current user can see.

If more than `elementAccess.maxPrincipals` different users and groups would be listed, the list is cut and `truncated`
is `true`. The listed users and groups are still correct, the list is just incomplete.

### Relations

For relations the access of both nodes is combined, as it is when the relation is requested, changed or deleted: reading
needs read access to both nodes, changing or deleting only modifies the start node and therefore needs the access to the
start node and read access to the end node. Access granting relations (`OWNS`, `IS_IN_GROUP` and `HAS_<ACCESS>_ACCESS`)
can additionally be deleted by whoever can read them and govern their end node without conditions. Groups are listed if
all of their members hold the access on both sides. To keep this cheap, at most 50 members of the groups holding an
access type on one node are considered; if there are more, the list may be incomplete and `truncated` is `true`.

## What may a specific user or group do?

With the `principal` query parameter the response is limited to a single user or group: every access type contains at
most that id. The value is the id of a user or group which the current user can read, or `me` for the current user:

```text
GET /<uuid>/access?principal=me
GET /<uuid>/access?principal=<user or group id>
```

For a user, all ways to the element are considered, including all groups. For a group, the access is listed if the
members of the group get it through the group, i.e. if the group, or a group it is a member of, holds it. If the
principal does not exist, is neither a user nor a group, or can not be read by the current user, the answer is `404`; a
value which is not an id is answered with `400`.

## Notes

- The response is not cached and has no `ETag`: it depends on grants and memberships anywhere in the graph.
- Changing access is done by creating and deleting access granting relations, see the guide
  [sharing elements](/guide/sharing-elements.md) and [managing groups](/guide/managing-groups.md).

## Request

```bash
curl \
  -H 'Authorization: Bearer secret-token:m645AtdO7nx1vOhLE5DPxA' \
  https://api.example.com/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/access
```

## Response

### 200 · All principals

Access to a document which is shared with a group (read and search) and a user (update).

#### Body

```json
{
  "type": "_ElementAccess",
  "id": "/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/access",
  "element": "02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt",
  "public": false,
  "truncated": false,
  "access": {
    "read": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6",
      "02IiNr0GPCDq6LhrEqKZGZSqVv0utssJw3uo0",
      "02IiNr0GPCDq6QOyrnRIQQxXDq3l3RPKTUZ2k"
    ],
    "search": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6",
      "02IiNr0GPCDq6QOyrnRIQQxXDq3l3RPKTUZ2k"
    ],
    "create": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6"
    ],
    "update": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6",
      "02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92"
    ],
    "delete": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6"
    ],
    "govern": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6"
    ],
    "execute": [
      "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6"
    ]
  },
  "principals": {
    "02IiNr0GPCDq6KfeDDF2xpddEIw4o60H70HI6": {
      "type": "User",
      "name": "Alice"
    },
    "02IiNr0GPCDq6LhrEqKZGZSqVv0utssJw3uo0": {
      "type": "User",
      "name": "Viewer"
    },
    "02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92": {
      "type": "User",
      "name": "Bob"
    },
    "02IiNr0GPCDq6QOyrnRIQQxXDq3l3RPKTUZ2k": {
      "type": "Group",
      "name": "Editors"
    }
  }
}
```

#### Headers

```http
Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-Match
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag
Allow: GET, HEAD, OPTIONS
Cache-Control: no-cache, private
X-Powered-By: Ember Nexus API
```

#### Schema

```json
{
  "type": "object",
  "description": "Who is allowed to do what with one element. Not a collection: the entries are users and groups, not elements.",
  "required": [
    "type",
    "id",
    "element",
    "public",
    "truncated",
    "access",
    "principals"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "_ElementAccess"
      ]
    },
    "id": {
      "type": "string",
      "description": "The request path, including the `principal` query parameter if it was used."
    },
    "element": {
      "type": "string",
      "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
      "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
      "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
    },
    "public": {
      "type": "boolean",
      "description": "True if the anonymous user can read the element, i.e. everybody can. False if there is no anonymous user, or it can not read the element."
    },
    "truncated": {
      "type": "boolean",
      "description": "True if the list is cut because more users and groups would be listed than the instance allows, see `elementAccess.maxPrincipals`. The listed ones are still correct, the list is just incomplete."
    },
    "access": {
      "type": "object",
      "description": "The users and groups which hold the access type, ids sorted ascending. A group is listed instead of its members; a user is only listed if no listed group of the same access type covers them. Only users and groups which the current user can read are shown.",
      "required": [
        "read",
        "search",
        "create",
        "update",
        "delete",
        "govern",
        "execute"
      ],
      "properties": {
        "read": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "search": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "create": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "update": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "delete": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "govern": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "execute": {
          "type": "array",
          "description": "Only elements which can be executed, i.e. saved searches, have an effect for it.",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        }
      }
    },
    "principals": {
      "type": "object",
      "description": "The users and groups listed in `access`, by id.",
      "additionalProperties": {
        "type": "object",
        "required": [
          "type",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "User",
              "Group"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `name` property of the user or group, null if it has none."
          },
          "anonymous": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Only present, and then true, for the anonymous user."
          }
        }
      }
    }
  }
}
```

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/200) · [HTTP.dev](https://http.dev/200)

### 200 · Single principal

Access of a single user, requested with the principal query parameter.

#### Body

```json
{
  "type": "_ElementAccess",
  "id": "/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/access?principal=02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92",
  "element": "02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt",
  "public": false,
  "truncated": false,
  "access": {
    "read": [
      "02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92"
    ],
    "search": [
      "02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92"
    ],
    "create": [],
    "update": [
      "02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92"
    ],
    "delete": [],
    "govern": [],
    "execute": []
  },
  "principals": {
    "02IiNr0GPCDq6MkGxMyqwlXNGinOuJCHfGH92": {
      "type": "User",
      "name": "Bob"
    }
  }
}
```

#### Headers

```http
Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-Match
Access-Control-Allow-Methods: GET, HEAD, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag
Allow: GET, HEAD, OPTIONS
Cache-Control: no-cache, private
X-Powered-By: Ember Nexus API
```

#### Schema

```json
{
  "type": "object",
  "description": "Who is allowed to do what with one element. Not a collection: the entries are users and groups, not elements.",
  "required": [
    "type",
    "id",
    "element",
    "public",
    "truncated",
    "access",
    "principals"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "_ElementAccess"
      ]
    },
    "id": {
      "type": "string",
      "description": "The request path, including the `principal` query parameter if it was used."
    },
    "element": {
      "type": "string",
      "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
      "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
      "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
    },
    "public": {
      "type": "boolean",
      "description": "True if the anonymous user can read the element, i.e. everybody can. False if there is no anonymous user, or it can not read the element."
    },
    "truncated": {
      "type": "boolean",
      "description": "True if the list is cut because more users and groups would be listed than the instance allows, see `elementAccess.maxPrincipals`. The listed ones are still correct, the list is just incomplete."
    },
    "access": {
      "type": "object",
      "description": "The users and groups which hold the access type, ids sorted ascending. A group is listed instead of its members; a user is only listed if no listed group of the same access type covers them. Only users and groups which the current user can read are shown.",
      "required": [
        "read",
        "search",
        "create",
        "update",
        "delete",
        "govern",
        "execute"
      ],
      "properties": {
        "read": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "search": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "create": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "update": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "delete": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "govern": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        },
        "execute": {
          "type": "array",
          "description": "Only elements which can be executed, i.e. saved searches, have an effect for it.",
          "items": {
            "type": "string",
            "pattern": "^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$",
            "example": "02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
            "description": "Global unique identifier for any element: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, made of a 4 byte encoding block, a 6 byte millisecond timestamp and a 16 byte random part (including the version and variant markers). The canonical form is base62sort, 37 characters of 0-9, A-Z and a-z. The same 27 bytes in base16 with dashes (60 characters in the groups 8-8-4-4-4-12-14, case-insensitive) are accepted as input as well."
          }
        }
      }
    },
    "principals": {
      "type": "object",
      "description": "The users and groups listed in `access`, by id.",
      "additionalProperties": {
        "type": "object",
        "required": [
          "type",
          "name"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "User",
              "Group"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `name` property of the user or group, null if it has none."
          },
          "anonymous": {
            "type": "boolean",
            "enum": [
              true
            ],
            "description": "Only present, and then true, for the anonymous user."
          }
        }
      }
    }
  }
}
```

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/200) · [HTTP.dev](https://http.dev/200)

### 400 · Bad Request

A provided property has the wrong type or fails a validation rule.

#### Body

```json
{
  "type": "https://api.example.com/error/400/bad-content",
  "title": "Bad content",
  "status": 400,
  "instance": "urn:uuid:02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
  "detail": "Endpoint expects property 'type' to be ActionChangePassword, got string 'NotActionChangePassword'."
}
```

#### Headers

`Access-Control-Allow-Headers`, `Access-Control-Allow-Methods`, `Access-Control-Allow-Origin`, `Access-Control-Expose-Headers`, `Allow`, `Cache-Control`, `X-Powered-By`. Descriptions and example values are in the Response Header section below.

#### Schema

Same as `Problem` — see the Response Schema section below.

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/400) · [HTTP.dev](https://http.dev/400)

### 401 · Unauthorized

The provided token is either invalid or expired.

#### Body

```json
{
  "type": "https://api.example.com/error/401/unauthorized",
  "title": "Unauthorized",
  "status": 401,
  "instance": "urn:uuid:02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
  "detail": "Authorization for the request failed due to possible problems with the token (incorrect or expired), password (incorrect or changed), the user's unique identifier, or the user's status (e.g., missing, blocked, or deleted)."
}
```

#### Headers

`Access-Control-Allow-Headers`, `Access-Control-Allow-Methods`, `Access-Control-Allow-Origin`, `Access-Control-Expose-Headers`, `Allow`, `Cache-Control`, `X-Powered-By`. Descriptions and example values are in the Response Header section below.

#### Schema

Same as `Problem` — see the Response Schema section below.

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/401) · [HTTP.dev](https://http.dev/401)

### 404 · Not Found

Element does not exist, or the current user does not have permissions to read the element. Also returned if the principal does not exist, is neither a user nor a group, or can not be read by the current user.

#### Body

```json
{
  "type": "https://api.example.com/error/404/not-found",
  "title": "Not found",
  "status": 404,
  "instance": "urn:uuid:02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI",
  "detail": "Requested element was not found."
}
```

#### Headers

`Access-Control-Allow-Headers`, `Access-Control-Allow-Methods`, `Access-Control-Allow-Origin`, `Access-Control-Expose-Headers`, `Allow`, `Cache-Control`, `X-Powered-By`. Descriptions and example values are in the Response Header section below.

#### Schema

Same as `Problem` — see the Response Schema section below.

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/404) · [HTTP.dev](https://http.dev/404)

## Request Parameters

### `uuid` (required)

`path · string · pattern ^(?:[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$`

Element id: a UUIDsv2a7 (draft-davis-uuidrev-uuid-long-00) of 27 bytes, 37 characters in base62sort; the same id in base16 with dashes (60 characters) is accepted as well.

### `principal` (optional)

`query · string · pattern ^(?:me|[0-9A-Za-z]{37}|[0-9A-Fa-f]{8}-[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}-[0-9A-Fa-f]{14})$`

Limits the response to a single user or group. Either the id of a user or group which the current user can read, or `me` for the current user.

Example: `me`

## Request Header

### `Authorization` (optional)

Bearer token for user authentication. If omitted, the request is processed as an anonymous user; if provided, the associated user account is used.

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Authorization) · [HTTP.dev](https://http.dev/authorization) · [Authentication guide](/guide/authentication.md)

## Response Schema

### `Problem`

Problem Details object, see RFC 9457.

```json
{
  "type": "object",
  "description": "Problem Details object, see RFC 9457.",
  "properties": {
    "type": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "detail": {
      "type": "string"
    },
    "instance": {
      "type": "string",
      "format": "uri",
      "description": "URN uniquely identifying the request that produced this problem, as `urn:uuid:<uuid>`."
    }
  }
}
```

## Response Header

### Other Headers

#### `Access-Control-Allow-Headers` (always)

Lists the request headers which the endpoint reads and which browsers may send in cross-origin requests. Headers are listed explicitly, as the wildcard does not cover `Authorization`; resumable upload headers, for example, are only listed by upload endpoints.

Example: `Authorization, Content-Type, If-Match, If-None-Match`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Headers) · [HTTP.dev](https://http.dev/access-control-allow-headers)

#### `Access-Control-Allow-Methods` (always)

Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Methods) · [HTTP.dev](https://http.dev/access-control-allow-methods)

#### `Access-Control-Allow-Origin` (always)

Specifies which origin may access the resource: the origin of the request (default), or `*` if `cors.allowedOrigins` is set to the wildcard. Not sent to origins which are not part of a configured list of `cors.allowedOrigins`.

Example: `*`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin) · [HTTP.dev](https://http.dev/access-control-allow-origin)

#### `Access-Control-Expose-Headers` (optional)

Lists the response headers which the endpoint can send and which browsers may access from JavaScript beyond the default restricted set. Only headers of the endpoint are listed; the header is omitted if the endpoint has none.

Example: `ETag`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Expose-Headers) · [HTTP.dev](https://http.dev/access-control-expose-headers)

#### `Allow` (always)

Lists the HTTP methods supported by the endpoint; returned alongside a `Method Not Allowed` response.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Allow) · [HTTP.dev](https://http.dev/allow)

#### `Cache-Control` (always)

Directives controlling caching behavior for the response.

Example: `no-cache, private`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Cache-Control) · [HTTP.dev](https://http.dev/cache-control)

#### `X-Powered-By` (always)

Identifies the underlying API implementation.

Example: `Ember Nexus API`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Powered-By) · [HTTP.dev](https://http.dev/x-powered-by)

#### `Access-Control-Allow-Methods` (always)

Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Methods) · [HTTP.dev](https://http.dev/access-control-allow-methods)

#### `Allow` (always)

Lists the HTTP methods supported by the endpoint; returned alongside a `Method Not Allowed` response.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Allow) · [HTTP.dev](https://http.dev/allow)

#### `Access-Control-Allow-Methods` (always)

Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Methods) · [HTTP.dev](https://http.dev/access-control-allow-methods)

#### `Allow` (always)

Lists the HTTP methods supported by the endpoint; returned alongside a `Method Not Allowed` response.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Allow) · [HTTP.dev](https://http.dev/allow)

#### `Access-Control-Allow-Methods` (always)

Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Methods) · [HTTP.dev](https://http.dev/access-control-allow-methods)

#### `Allow` (always)

Lists the HTTP methods supported by the endpoint; returned alongside a `Method Not Allowed` response.

Example: `GET, HEAD, OPTIONS`

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Allow) · [HTTP.dev](https://http.dev/allow)

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)

Previous: [Get related](/api/get-related.md)

Next: [Post index](/api/post-index.md)
