PUT
/
dataset
/
test-case
/
{id}
curl --request PUT \
--url "https://api.coval.dev/dataset/test-case/{id}" \
--header "x-api-key: $COVAL_API_KEY" \
--header "Content-Type: application/json" \
--data '{
    "inputStr": "Updated input",
    "expectedOutputStr": "Updated expected output",
    "userNotes": "Updated notes",
    "description": "Updated description"
}'
{
  "message": "Test case updated successfully",
  "testCase": {
    "id": "<string>",
    "inputStr": "<string>",
    "expectedOutputStr": "<string>",
    "userNotes": "<string>",
    "description": "<string>",
    "lastUpdatedAt": "2023-11-07T05:31:56Z"
  }
}
curl --request PUT \
--url "https://api.coval.dev/dataset/test-case/{id}" \
--header "x-api-key: $COVAL_API_KEY" \
--header "Content-Type: application/json" \
--data '{
    "inputStr": "Updated input",
    "expectedOutputStr": "Updated expected output",
    "userNotes": "Updated notes",
    "description": "Updated description"
}'

Path Parameters

id
string
required

ID of the test case to update

Body

application/json
Test case details to update
inputStr
string

Updated input string for the test case

expectedOutputStr
string

Updated expected output string

userNotes
string

Updated user notes for the test case

description
string

Updated description of the test case

Response

200
application/json
Test case updated successfully
message
string
testCase
object