Create Testset
POST/testsets
Create a testset with given name save the testset to MongoDB.
Args: name (str): name of the test set. testset (Dict[str, str]): test set data.
Returns: str: The id of the test set created.
Request
Path Parameters
app_id App Idrequired
- application/json
Body
required
name Name (string)required
csvdata object[]required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
id Id (string)required
name Name (string)required
created_at Created At (string)required
{
"id": "string",
"name": "string",
"created_at": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...