This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Get the Folder with the specified rid.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:filesystem-read.
objectstringThe unique resource identifier (RID) of a Folder.
stringThe display name of the Resource
stringThe description associated with the Folder.
stringThe documentation associated with the Folder.
stringThe full path to the resource, including the resource name itself
stringThe Foundry user who created this resource
stringThe Foundry user who last updated this resource
stringThe time at which the resource was created.
stringThe time at which the resource was most recently updated.
string (enum)The trash status of the Folder. If trashed, this could either be because the Folder itself has been trashed or because one of its ancestors has been trashed.
Enum values: DIRECTLY_TRASHED, ANCESTOR_TRASHED, NOT_TRASHED
stringThe parent folder Resource Identifier (RID). For Projects, this will be the Space RID and for Spaces,
this value will be the root folder (ri.compass.main.folder.0).
stringThe Project Resource Identifier (RID) that the Folder lives in. If the Folder is a Space, this value will not be defined.
stringThe Space Resource Identifier (RID) that the Folder lives in. If the Folder is a Space, this value will be the same as the Folder RID.
1
2
3
curl \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/filesystem/folders/ri.compass.main.folder.01a79a9d-e293-48db-a585-9ffe221536e8?preview=true"1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"projectRid": "ri.compass.main.folder.4cae7c13-b59f-48f6-9ef2-dbde603e4e33",
"updatedTime": "2024-09-25T17:29:35.974Z",
"updatedBy": "f05f8da4-b84c-4fca-9c77-8af0b13d11de",
"displayName": "My Folder",
"description": "This dataset contains important data about Empyrean Airlines",
"rid": "ri.compass.main.folder.01a79a9d-e293-48db-a585-9ffe221536e8",
"type": "FOLDER",
"spaceRid": "ri.compass.main.folder.a86ad5f5-3db5-48e4-9fdd-00aa3e5731ca",
"trashStatus": "NOT_TRASHED",
"parentFolderRid": "ri.compass.main.folder.4cae7c13-b59f-48f6-9ef2-dbde603e4e33",
"path": "/Empyrean Airlines/My Important Project/My Folder",
"createdBy": "f05f8da4-b84c-4fca-9c77-8af0b13d11de",
"createdTime": "2024-09-25T17:29:35.974Z"
}| Error Name | ||
|---|---|---|
Invalid | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | The given Resource is not a Folder. | |
| Parameters | resourceRid | |
Get | Error Code | INVALID_ARGUMENT |
| Status Code | 400 | |
| Description | Getting the root folder as a resource is not supported. | |
| Parameters | | |
Folder | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | The given Folder could not be found. | |
| Parameters | folderRid | |
See Errors for a general overview of errors in the platform.