Create Testset

POST

Create a new Testset

Request

This endpoint expects an object.
namestringRequired
descriptionstringOptional

A description for the testset.

using_retrievalbooleanOptional

Whether or not the testset uses retrieval.

custom_schemaobjectOptional

Custom schema model with an ordered list of custom variables.

project_idintegerOptional

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: csvlogging

The method of ingestion for the testset.

publishedbooleanOptional

Whether or not the testset is published.

created_by_playgroundbooleanOptional

Whether or not the testset was created by the playground.

Response

This endpoint returns an object.
idintegerOptional

The ID of the testset.

created_atdatetimeOptional

The creation date and time of the testset.

namestringOptional

A human-readable name for the testset. This will be displayed in the UI.

descriptionstringOptional

A description for the testset.

using_retrievalbooleanOptional

Whether or not the testset uses retrieval.

ingestion_methodstringOptional

The method used to ingest the testset.

num_testcasesintegerOptional

The number of testcases in the testset.

publishedbooleanOptional

Whether or not the testset is published.

updated_atdatetimeOptional

The last time the testset was updated.

is_archivedbooleanOptional

Whether or not the testset is archived.

project_idintegerOptional

The ID of the project the testset belongs to.

custom_schemaobjectOptional

Custom schema model with an ordered list of custom variables.

created_by_playgroundbooleanOptional

Whether or not the testset was created by the playground.

Errors

Built with