API Documentation
|
where {itemId}
is the ID of a file object/Secure Object or folder/collection.
GET
- retrieves a list of information about the ancestral folders/collections of a specified file object/Secure Object or folder (i.e. item), specified by itemId
.Note: This method takes no parameters.
This API endpoint retrieves a list of information about the ancestral folders of a file object or folder, specified by itemId
.
The item's ID can be obtained by calling the <access-service>/api/v1/organisations/{orgId}/items API endpoint, which retrieves a list of information associated with file objects and folders that can be filtered using various 'search' criteria.
The list of folder information returned is ordered from the root location (whose ID is 0
) first, through to the immediate parent folder last.
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide):
{itemId}
in the request's URL.{itemId}
in the URL.The Cocoon Data Platform's resources available to one of these Cocoon Data users (above) is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing an array of objects with the following members is also returned:
0
. For a folder location, this value is the folder's ID. 0
. For a folder location, this value is the immediate parent folder's ID (or 0
if the immediate parent location is the root location).