Update Testset
PUThttps://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
- application/json
Body
required
name Name (string)required
csvdata object[]required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
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": [
{}
]
}'
ResponseClear