Dataset Items
Batch Create Dataset Items
Question Sets
Dataset Items
Evaluations
Evaluation Items
Dataset Items
Batch Create Dataset Items
POST
/
v5
/
dataset-items
/
batch
curl --request POST \
--url https://api.egp.scale.com/v5/dataset-items/batch \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"dataset_id": "<string>",
"data": [
{}
]
}'
{
"object": "list",
"items": [
{
"id": "<string>",
"object": "dataset.item",
"dataset_id": "<string>",
"data": "<any>",
"content_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"archived_at": "2023-11-07T05:31:56Z"
}
]
}
Authorizations
Body
application/json
Identifier of the target dataset
Items to be added to the dataset
Response
200
application/json
Successful Response
Available options:
list
curl --request POST \
--url https://api.egp.scale.com/v5/dataset-items/batch \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"dataset_id": "<string>",
"data": [
{}
]
}'
{
"object": "list",
"items": [
{
"id": "<string>",
"object": "dataset.item",
"dataset_id": "<string>",
"data": "<any>",
"content_hash": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"created_by_user_id": "<string>",
"archived_at": "2023-11-07T05:31:56Z"
}
]
}