get /<uuid>/access
Get element access
Endpoint answers two questions about a single element, which can be a node or a relation:
- What may I do with the element?
- 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 , 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.
principalscontains exactly the listed ids, with their type and name. executeonly has an effect for executable elements like saved ; 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:
GET /<uuid>/access?principal=meGET /<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
Request
curl \ -H 'Authorization: Bearer secret-token:m645AtdO7nx1vOhLE5DPxA' \ https://api.example.com/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/accessimport requests
url = "https://api.example.com/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/access"
headers = {"Authorization": "Bearer secret-token:m645AtdO7nx1vOhLE5DPxA"}
response = requests.get(url, headers=headers)
print(response.json())const url = 'https://api.example.com/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/access';const options = { method: 'GET', headers: {Authorization: 'Bearer secret-token:m645AtdO7nx1vOhLE5DPxA'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}<?php
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.example.com/02IiNr0GPCDq6bIfaIK7rt5QIXdCSXQN3YgMt/access', [ 'headers' => [ 'Authorization' => 'Bearer secret-token:m645AtdO7nx1vOhLE5DPxA', ],]);
echo $response->getBody();Response
200 · All principals
Access to a document which is shared with a group (read and search) and a user (update).
200 · Single principal
Access of a single user, requested with the principal query parameter.
400 · Bad Request
A provided property has the wrong type or fails a validation rule.
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.
{ "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" } }}Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-MatchAccess-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: ETagAllow: GET, HEAD, OPTIONSCache-Control: no-cache, privateX-Powered-By: Ember Nexus API{ "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." } } } } }}{ "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" } }}Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-MatchAccess-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: ETagAllow: GET, HEAD, OPTIONSCache-Control: no-cache, privateX-Powered-By: Ember Nexus API{ "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." } } } } }}{ "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'."}Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-MatchAccess-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: ETagAllow: GET, HEAD, OPTIONSCache-Control: no-cache, privateX-Powered-By: Ember Nexus API{ "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>`." } }}{ "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)."}Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-MatchAccess-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: ETagAllow: GET, HEAD, OPTIONSCache-Control: no-cache, privateX-Powered-By: Ember Nexus API{ "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>`." } }}{ "type": "https://api.example.com/error/404/not-found", "title": "Not found", "status": 404, "instance": "urn:uuid:02IiNr0G8viOVKjLCfR4NIEdgVrLpaxVcZ7BI", "detail": "Requested element was not found."}Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-None-MatchAccess-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Allow-Origin: *Access-Control-Expose-Headers: ETagAllow: GET, HEAD, OPTIONSCache-Control: no-cache, privateX-Powered-By: Ember Nexus API{ "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>`." } }}Request Parameters
uuid
required
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
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.
Response Header
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.
Access-Control-Allow-Methods
always
Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.
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.
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.
Allow
always
Lists the HTTP methods supported by the endpoint; returned alongside a Method Not Allowed response.
Cache-Control
always
Directives controlling caching behavior for the response.
Access-Control-Allow-Methods
always
Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.
Allow
always
Lists the HTTP methods supported by the endpoint; returned alongside a Method Not Allowed response.
Access-Control-Allow-Methods
always
Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.
Allow
always
Lists the HTTP methods supported by the endpoint; returned alongside a Method Not Allowed response.
Access-Control-Allow-Methods
always
Indicates which HTTP methods are permitted for cross-origin requests, typically returned in preflight responses.
Allow
always
Lists the HTTP methods supported by the endpoint; returned alongside a Method Not Allowed response.