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 '
{
"content": "<string>"
}
'{
"insertedCount": 123
}Datasets v2
Import dataset items from CSV or JSONL
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 '
{
"content": "<string>"
}
'{
"insertedCount": 123
}Authorizations
Use a project private API key via Authorization: Bearer <key>.
Path Parameters
Response
200 - application/json
Number of imported items