Skip to main content
POST
/
v1
/
datasets-v2
/
{datasetId}
/
versions
Create dataset version snapshot
curl --request POST \
  --url https://api.lunary.ai/v1/datasets-v2/{datasetId}/versions \
  --header 'Authorization: Bearer <token>'
{
  "version": {
    "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
  },
  "dataset": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "ownerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "ownerName": "<string>",
    "ownerEmail": "<string>",
    "name": "<string>",
    "description": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "itemCount": 123,
    "currentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "currentVersionNumber": 123,
    "currentVersionCreatedAt": "2023-11-07T05:31:56Z",
    "currentVersionCreatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "currentVersionRestoredFromVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

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

Response

201 - application/json

Created dataset version

version
object
dataset
object