PUT
/
dataset
/
{id}
curl --request PUT \
--url "https://api.coval.dev/dataset/{id}" \
--header "x-api-key: $COVAL_API_KEY" \
--header "Content-Type: application/json" \
--data '{
    "displayName": "create_test_sets2",
    "description": "Updated description",
    "testSetType": "SCENARIO",
    "testSetMetadata": {"key": "value"}
}'
{
  "message": "Test set updated successfully",
  "testSet": {
    "id": "<string>",
    "displayName": "<string>",
    "description": "<string>",
    "testSetType": "<string>",
    "testSetMetadata": {},
    "lastUpdatedAt": "2023-11-07T05:31:56Z"
  }
}
curl --request PUT \
--url "https://api.coval.dev/dataset/{id}" \
--header "x-api-key: $COVAL_API_KEY" \
--header "Content-Type: application/json" \
--data '{
    "displayName": "create_test_sets2",
    "description": "Updated description",
    "testSetType": "SCENARIO",
    "testSetMetadata": {"key": "value"}
}'

Path Parameters

id
string
required

ID of the test set to update

Body

application/json
Test set details to update
displayName
string

Display name of the test set

description
string

Description of the test set

testSetType
enum<string>

Type of the test set

Available options:
DEFAULT,
SCENARIO,
TRANSCRIPT,
WORKFLOW
testSetMetadata
object

Metadata of the test set in JSON format

Response

200
application/json
Test set updated successfully
message
string
testSet
object