Rename a directory.
Change the name of one directory. The operation is a POST rather than a PATCH
because it is the same call the Galilea application makes; PUT and PATCH are not
served on this path.
Only the name changes. Moving a directory is POST /directories/{directoryId}/relocation;
everything else about a directory — its tenant, its permissions, its documents — is written elsewhere or
not at all. Properties other than name in the body are ignored.
Renaming does not change the id, so an integration that stored ids keeps working
across a rename; that is the reason to store them rather than names.
Requires edit permission on the parent of the directory, which is the right the Galilea application asks for as well. The tenant root cannot be renamed, and neither can a project directory, whose name is its project's business.
apiKeyX-API-Key<token>API key issued in the Galilea settings.
directoryId*stringThe id of the directory, as returned by GET /directories.
uuidapplication/json- body
The new name of a directory. Only the name of a directory can be changed; where it sits and who may see it are their own operations, and everything else about a directory is Galilea's own bookkeeping. Any other property sent with it is ignored.
name*stringNew display name. Unique among the siblings of the directory, and without a /,
which separates the segments of a path.
length <= 255The renamed 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 POST "https://example.com/directories/7d9030b3-4c0f-4051-9d54-79a6802a0c22" \ -H "Content-Type: application/json" \ -d '{ "name": "Invoices 2026" }'{ "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"}