Skip to main content
POST
/
api
/
parea
/
v1
/
update_test_case
/
{dataset_id}
/
{test_case_id}
Update Test Case
curl --request POST \
  --url https://parea-ai-backend-us-9ac16cdbc7a7b006.onporter.run/api/parea/v1/api/parea/v1/update_test_case/{dataset_id}/{test_case_id} \
  --header 'Content-Type: application/json' \
  --header 'x-user-id: <api-key>' \
  --data '{
  "inputs": {},
  "target": "<string>",
  "tags": [
    "<string>"
  ]
}'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

x-user-id
string
header
required

Path Parameters

dataset_id
integer
required
test_case_id
integer
required

Body

application/json

Any set field will be used to update the item in the dataset.

inputs
Inputs · object

Key-value pairs for the inputs of that item

target
string | null

Target/ground truth value for the item

tags
string[] | null

Tags for the item

Response

Successful Response