v1

latestOpenAPI 3.1.02026-07-1320186461.3 KB

Create Collection

Creates a dataset

post/api/parea/v1/collection

Request body

namestring required

Name of the dataset

column_namesstring[] required

Column names for the dataset

Example request

{
  "column_names": [
    "language",
    "framework"
  ],
  "name": "Hello World Programs",
  "test_cases": [
    {
      "inputs": {
        "framework": "fastapi",
        "language": "python"
      },
      "tags": [
        "easy"
      ],
      "target": "a good program here"
    }
  ]
}

Response

Successful Response

idinteger required

Unique identifier for the dataset

last_updated_atstring required

Timestamp when the dataset was last updated

test_case_idsinteger[] required

List of created test case IDs in the dataset

Example response

{
  "id": 5000,
  "last_updated_at": "2021-06-01T00:00:00Z",
  "test_case_ids": [
    12345
  ]
}