Skip to main content
POST
/
dataset
Create Dataset
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
string
required
name
string
required
version
string
headers
string[]

Column headers

Response

201 - application/json

Dataset created

responseData
object
message
string