API Documentation
|
where {orgGroupId}
is the ID of an organisation and {userId}
is the ID of a Cocoon Data user account.
GET
- retrieves the total number of file objects/Secure Objects currently owned by a Cocoon Data user (specified by userId
) within an organisation (specified by orgGroupId
).Note: This method takes no parameters.
This API endpoint retrieves the total number of file objects/Secure Objects currently owned by a Cocoon Data user (specified by userId
) within an organisation (specified by orgGroupId
).
A Cocoon Data user's ID can be obtained by calling the GET
method of the <access-service>/api/v1/organisations/{orgGroupId}/users API endpoint, which retrieves a list of information associated with existing users in an organisation (specified by orgGroupId
), which can be filtered through a variety of 'search' criteria.
This endpoint is useful for determining the number of file objects that a Cocoon Data user owns, before transferring the ownership of these items over to another user.
Note: Although this endpoint indicates items in its URL, calling it only returns the total number of file objects (i.e. folders/collections are not counted). However, when actually transferring the ownership of items from one Cocoon Data user to another, all of the user's items (i.e. all their file objects and folders) are transferred.
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
{orgGroupId}
in the request's URL.The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria 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...
A JSON-formatted response containing the following members:
userId
in this endpoint's URL.