Folder
A Folder is a container type and can be represented as follows:
1 2 3 4 5 6 7 8 |
|
The fields are as follows:
- id (UUID): The unique identifier of this folder
- domainType (Type): The domain type of this catalogue object. Will always be
Folder
in this case. - label (String): The human-readable identifier of this folder.
- description (String): A long description of the folder, and any important characteristics of the data. This field may include HTML, or MarkDown.
- lastUpdated (DateTime): The date/time when this folder was last modified
- hasChildFolders (Boolean): Determines if this folder contains child folders.
As well as the endpoints listed below, a Folder is also a CatalogueItem, and so a Folder identifier can also be used as the parameter to any of those endpoints
Child Folders¶
A folder may contain child folders. Endpoints are provided to differentiate between parent and child folders.
Getting information¶
The following endpoints returns a paginated list of all the folders. The first requests all root folders in Mauro, the second requests the folders for a parent folder.
These endpoints provide the detailed information about a particular folder; the first requests a root folder in Mauro, the second requests a folder from a parent folder.
Create / Update / Delete¶
To create a new folder from scratch, use the following post endpoints, depending on whether to create one with or without a parent.
To edit the properties of a folder, use the following endpoints, with a body similar to the JSON described at the top of this page. Use the appropriate endpoint depending on whether to edit one with or without a parent.
To delete a folder, use the following endpoint, depending on whether to delete one with or without a parent. The permanent parameter is a boolean value that controls whether a 'hard' or 'soft' delete is used if the user is an administrator.