Search...
/
Contact
Sign in
Documentation
API Reference
Glossary
Overview
API Reference
Testset
GET
Read Testset
DEL
Delete
PATCH
Update Testset
POST
Create Testset
GET
Read Testset Schema
GET
Read Testcases
Testcase
POST
Create Testcase
GET
Read Testcase
DEL
Delete Testcase
PATCH
Update Testcase
POST
Batch Copy Testcases
PATCH
Batch Delete Testcases
Testrecord
GET
Read Testrecord
POST
Create Testrecord
Run
POST
Create Run
GET
Read Run
PATCH
Update Run Status
Score
POST
Create Score
PATCH
Update Score
Run Metric
GET
Read Run Metrics
Tracing
GET
Get Traces
GET
Get Trace
GET
Get Trace Span
Prompt
GET
Get Prompt By Name
POST
Create Prompt
GET
Get Prompt By Id
DEL
Delete Scoring Config
PATCH
Update Prompt
Scoring Config
POST
Create Scoring Config
GET
Get Scoring Config
Contact
Sign in
API Reference
Testset
Create Testset
POST
https://
api.getscorecard.ai
/
v1
/
testset
Create a new Testset
Request
This endpoint expects an object.
name
string
Required
description
string
Optional
A description for the testset.
using_retrieval
boolean
Optional
Whether or not the testset uses retrieval.
custom_schema
object
Optional
Custom schema model with an ordered list of custom variables.
Show property
project_id
integer
Optional
The ID of the project to create the testset in. Omitting this optional argument will create the testset inside your Organization's default project.
ingestion_method
"csv" or "logging"
Optional
Allowed values:
csv
logging
The method of ingestion for the testset.
published
boolean
Optional
Whether or not the testset is published.
Response
This endpoint returns an object
id
integer
Optional
The ID of the testset.
created_at
datetime
Optional
The creation date and time of the testset.
name
string
Optional
A human-readable name for the testset. This will be displayed in the UI.
description
string
Optional
A description for the testset.
using_retrieval
boolean
Optional
Whether or not the testset uses retrieval.
ingestion_method
string
Optional
The method used to ingest the testset.
num_testcases
integer
Optional
The number of testcases in the testset.
published
boolean
Optional
Whether or not the testset is published.
updated_at
datetime
Optional
The last time the testset was updated.
is_archived
boolean
Optional
Whether or not the testset is archived.
project_id
integer
Optional
The ID of the project the testset belongs to.
custom_schema
object
Optional
Custom schema model with an ordered list of custom variables.
Show property
Errors
401
Unauthorized
403
Forbidden
404
Not Found
422
Unprocessable Entity
Built with