Skip to main content

Get list of datasets

GET 

/v2/datasets

Lists all of a user's datasets.

The response is a JSON array of objects, where each object contains basic information about one dataset.

By default, the objects are sorted by the createdAt field in ascending order, therefore you can use pagination to incrementally fetch all datasets while new ones are still being created. To sort them in descending order, use desc=1 parameter. The endpoint supports pagination using limit and offset parameters and it will not return more than 1000 array elements.

Request

Query Parameters

    offset double

    Number of items that should be skipped at the start. The default value is 0.


    Example: 0
    limit double

    Maximum number of items to return. The default value as well as the maximum is 1000.


    Example: 1000
    desc boolean

    If true or 1 then the results are returned in descending order. By default, they are sorted in ascending order.


    Example: true
    unnamed boolean

    If true or 1 then all the storages are returned. By default, only named storages are returned.


    Example: true
    ownership StorageOwnership

    Possible values: [ownedByMe, sharedWithMe]

    Filter by ownership. If this parameter is omitted, all accessible datasets are returned.

    • ownedByMe: Return only datasets owned by the user.
    • sharedWithMe: Return only datasets shared with the user by other users.

    Example: ownedByMe

Status 200

Response Headers
    {
    "data": {
    "total": 1,
    "offset": 0,
    "limit": 1000,
    "desc": false,
    "count": 1,
    "items": [
    {
    "id": "WkzbQMuFYuamGv3YF",
    "name": "d7b9MDYsbtX5L7XAj",
    "userId": "tbXmWu7GCxnyYtSiL",
    "createdAt": "2019-12-12T07:34:14.202Z",
    "modifiedAt": "2019-12-13T08:36:13.202Z",
    "accessedAt": "2019-12-14T08:36:13.202Z",
    "itemCount": 7,
    "cleanItemCount": 5,
    "actId": "zdc3Pyhyz3m8vjDeM",
    "actRunId": "HG7ML7M8z78YcAPEB"
    }
    ]
    }
    }