curl --request POST \
--url https://api.promptmetrics.dev/dataset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "64abc123",
"name": "Evaluation Dataset"
}
'{
"responseData": {
"_id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"version": "<string>",
"headers": [
"<string>"
],
"rows": "<array>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
},
"message": "<string>"
}Create a new dataset in a workspace.
curl --request POST \
--url https://api.promptmetrics.dev/dataset \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace_id": "64abc123",
"name": "Evaluation Dataset"
}
'{
"responseData": {
"_id": "<string>",
"workspace_id": "<string>",
"name": "<string>",
"version": "<string>",
"headers": [
"<string>"
],
"rows": "<array>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z"
},
"message": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.