Read a directory.
One directory by its id: where it sits, what is directly inside it, and who may reach it. An integration that holds an id from an earlier run reads it here rather than listing the whole tree again.
What is not visible is not found. A directory of another tenant, one that is not shared with the calling key, the personal directory of another person, and an id that exists nowhere are all answered with 404. A caller learns nothing about what lies outside its own reach.
Project directories are read here too, by the members of the project: documents
lists what the project holds. Such a directory has displayStyle project, an empty
parentPath, no children and no userGroups, because its rights come from the
project members (GET /projects/{projectId}/members), not from groups of its own. Its
userPermissions are directory.view for every member and additionally
directory.create_document for members who may add documents; nothing else. For
anybody who is not a member it does not exist.
Requires no right beyond seeing the directory.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
directoryId*stringThe id of the directory, as returned by GET /directories.
uuidThe directory.
application/json- response
Full representation of a directory, returned after creating one.
id*stringIdentifier of the directory.
uuidname*stringDisplay name of the directory. Names of siblings are unique.
parentPath*array<>IDs of the directories on the path from the tree root down to the parent of this directory. The first entry is always a top-level directory; the array is empty for a top-level directory.
children*array<>IDs of the direct child directories.
documents*array<>IDs of the documents directly inside this directory.
createdBy?The user who created this directory.
createdAt*stringCreation timestamp of the directory.
date-timelastModifiedAt*stringLast modification timestamp of the directory.
date-timeuserPermissions*array<>The calling user's permissions on this directory, the same strings the Galilea application works with:
- directory.view read the directory and the documents in it
- directory.create_subfolder create directories in it
- directory.create_document add documents to it, by
POST /uploadswith this directory - directory.rename rename it
- directory.move move it to another parent
- directory.delete delete it with everything in it
- directory.view_permissions read which user groups may reach it
- directory.set_permissions share it with user groups
- directory.remove_permissions stop sharing it
userGroups*array<>User groups with permissions on this directory or one of its ancestors. Empty when the calling user has no edit permission on the directory or the directory is restricted.
displayStyle?stringDisplay style of the directory: default for normal directories, personal for
the personal directory of a user, project for the directory of a project.
"default""default""personal""project"curl -X GET "https://example.com/directories/7d9030b3-4c0f-4051-9d54-79a6802a0c22"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "parentPath": [ "7924443e-e7c3-4361-a028-25053af0dbf9" ], "children": [ "4feb20ac-04ac-4bd8-9baa-d4924dafff88" ], "documents": [ "117f7992-66ce-4ba8-bec7-dc516f479ad2" ], "createdBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "createdAt": "2019-08-24T14:15:22Z", "lastModifiedAt": "2019-08-24T14:15:22Z", "userPermissions": [ "directory.view" ], "userGroups": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "tenant_all", "name": "string", "acronym": "st", "color": "string", "emailAddress": "string", "numberOfMembers": 0, "tenant": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "user": {}, "createdAt": "2019-08-24T14:15:22Z", "lastModifiedAt": "2019-08-24T14:15:22Z" } ], "displayStyle": "default"}