Skip to main content
GET
/
v1
/
datasets-v2
/
{datasetId}
/
versions
List dataset versions
curl --request GET \
  --url https://api.lunary.ai/v1/datasets-v2/{datasetId}/versions \
  --header 'Authorization: Bearer <token>'
{
  "versions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "datasetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "versionNumber": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "restoredFromVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "itemCount": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datasetId
string<uuid>
required

Query Parameters

limit
integer
Required range: 1 <= x <= 100

Response

200 - application/json

Dataset versions

versions
object[]