Skip to main content
POST
/
v1
/
datasets-v2
/
{datasetId}
/
import
Import dataset items from CSV or JSONL
curl --request POST \
  --url https://api.lunary.ai/v1/datasets-v2/{datasetId}/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "format": "csv",
  "content": "<string>"
}'
{
  "insertedCount": 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

Body

application/json
format
enum<string>
required
Available options:
csv,
jsonl
content
string
required

Response

200 - application/json

Number of imported items

insertedCount
integer