API Documentation
|
where {itemId}
is the ID of a file object/Secure Object or folder/collection.
GET
- retrieves history information about the activities which have been performed on a specified file object/Secure Object or folder/collection (i.e. item), specified by itemId
.This API endpoint retrieves history information about the activities which have been performed on a file object or folder, specified by itemId
. Activities are retrieved in reverse chronological order.
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 extent of history information retrieved in a response depends on the role of the Cocoon Data user (whose access token is submitted in the request to this endpoint) and this user's relationship to this item. The extent of history information decreases based on these user relationship to items and roles (explained in more depth in the next section), in the following order:
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.{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...
The following optional parameters can be sent in the URL of the GET request:
0
by default, which is the most recent activity entry recorded on the item. 1
to 100
indicating the number of activity entries to be returned in the response. If this parameter is omitted, then its value is 10
by default. If the request succeeded, then an HTTP response status 200 OK
is returned.
A JSON-formatted response containing the following members:
0
. USER
, indicating that this member contains information about a Cocoon Data user account. CREATE_ITEM
, MOVE_ITEM
, RENAME_ITEM
, RECYCLE_ITEM
, RESTORE_ITEM
, DELETE_ITEM
. ACCESS_GRANTED
, SHARE_ITEM
, PERMISSION_CHANGE
, UNSHARE_ITEM
, CHANGE_ITEM_LABEL
, REMOVE_ITEM_LABEL
. ENABLE_ITEM
, DISABLE_ITEM
, CHANGE_ITEM_OWNER
. SET_VIEWABLE_CONTENT
(a file object's read-only view is automatically generated), ACCESS_ORIGINAL_CONTENT
(a file object's actual content is accessed), ACCESS_VIEWABLE_CONTENT
(a file object's read-only view is accessed). CREATE_VERSION
(a new version of a file is created), ACTIVATE_VERSION
(another version of a file is set as active), DELETE_VERSION
. UNKNOWN
- Anything else that is not covered by an existing action (above). USER
, indicating that this member contains information about a Cocoon Data user account.