Skip to main content

Update Testset

PUT 

https://cloud.agenta.ai/api/testsets/:testset_id

Update a testset with given id, update the testset in MongoDB.

Args: testset_id (str): id of the test set to be updated. csvdata (NewTestset): New data to replace the old testset.

Returns: str: The id of the test set updated.

Request

Path Parameters

    testset_id Testset Idrequired

Body

required

    name Name (string)required
    csvdata object[]required

Responses

Successful Response

Schema

    any

curl -L -X PUT 'https://cloud.agenta.ai/api/testsets/:testset_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"name": "string",
"csvdata": [
{}
]
}'
Request Collapse all
Base URL
https://cloud.agenta.ai/api
Auth
Parameters
— pathrequired
Body required
{
  "name": "string",
  "csvdata": [
    {}
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!