API Documentation
|
where {orgId}
is the ID of an organisation.
GET
- retrieves a list of high-level information associated with all items currently in the Recycle Bin of the Cocoon Data user whose access token is submitted in the request to this endpoint.DELETE
- deletes all items in the Recycle Bin of the Cocoon Data user whose access token is submitted in the request.Note: The
DELETE
method takes no parameters.
This API endpoint serves a number of purposes:
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide):
{orgId}
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...
The following optional parameter can be sent in the URL of the GET request:
0
to any positive integer, representing the maximum number of items to be returned in the response from the Cocoon Data Platform, where an individual item is information about a file object within the organisation. Specifying the value 0
imposes no limit on the number of items returned. If this parameter is omitted, then its value is 10
by default. 0
(i.e. the first item returned in a response). If this parameter is omitted, then its value is 0
by default. ASC
for this parameter) or descending order (by specifying the value DESC
). If this parameter is omitted, then its value is DESC
by default. name
- the item's name, size
- the date when the file object was created, time
- the file object's ID. time
by default. If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful GET
requests only, a JSON-formatted response containing the following members is also returned:
object
if the item is a file object or collection
if the item is a folder. {orgId}
in the request's URL.) 0
indicates that this item is located at the logical root location.