API Documentation
|
where {itemId}
is the ID of a file object/Secure Object or folder/collection.
GET
- retrieves information about a file object/Secure Object or folder/collection (i.e. item), specified by itemId
.Note: This method takes no parameters.
This API endpoint retrieves information about 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.
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 the following members is also returned:
null
. null
. null
. null
. server.useraccounttype.
This I18N code could include the substring local
, ldap
or external
. false
. null
. true
after the file object's data has been successfully uploaded and stored and the size of this data is less than the maximum configured file size for generating a view (i.e. 20 MB by default). true
) or not (false
) two-factor authentication has been enforced for all members of the organisation. null
. 0
indicates that this item is located at the logical root location. incomplete
for an initialized file object, created
for a completed file or folder. deleted
. Doing so results in an error. POST
method on the respective <access-service>/api/v1/organisations/{orgGroupId}/objects or <access-service>/api/v1/organisations/{orgId}/collections endpoints), this date and time should match (or be close to) that of the createdAt value below. Otherwise, if the folder has since been modified (via the PUT
method on the respective <access-service>/api/v1/objects/{objectId} or <access-service>/api/v1/collections/{collectionId} endpoints), this date and time should reflect when the folder was last modified. object
if the item is a file object or collection
if the item is a folder. null
. null
. null
or 0
. A value of null
indicates that the item's location in its hierarchy of folders (e.g. as indicated in a SafeShare application's list of items) are equivalent between this collaborator and the current owner of this item. A value of 0
indicates that the item is being shared from the logical root file area/location of this collaborator's account. In SafeShare applications, this occurs when the owner of this item has shared the item with this collaborator, but the item's parent folder has not also been shared with this collaborator. null
.