v1

latestOpenAPI 3.1.02026-07-1320186461.3 KB

Create Test Cases For Dataset

Adds items/test cases to a dataset. If the dataset does not exist, it will be created. Returns the IDs of the created items/test cases.

Returns: List[int]: List of IDs of the created items/test cases.

post/api/parea/v1/testcases

Request body

idinteger nullable

ID for the dataset/test case collection. Either ID or name is required to identify the dataset.

namestring nullable

Name for the dataset/test case collection. Either ID or name is required to identify the dataset.

Example request

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

Response

Successful Response

integer[] required