v1

latestOpenAPI 3.1.02026-07-1320186461.3 KB

Update Test Case

Update the item/test case of the dataset with any given fields.

Args: dataset_id (int): ID of the dataset. test_case_id (int): ID of the item/test case. update_test_case_request (UpdateTestCasePublicRequestSchema): Request body containing the fields to update.

post/api/parea/v1/update_test_case/{dataset_id}/{test_case_id}

Path parameters

dataset_idinteger required
test_case_idinteger required

Request body

inputsobject nullable

Key-value pairs for the inputs of that item

targetstring nullable

Target/ground truth value for the item

tagsstring[] nullable

Tags for the item

Example request

{
  "inputs": {
    "framework": "gin",
    "language": "golang"
  }
}

Response

Successful Response

{"stackTrail":"paths:/api/parea/v1/update_test_case/{dataset_id}/{test_case_id}:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}