Create testset rows

Create one or more rows in a testset. If row_index is omitted, the row is appended to the end of the testset.

Authentication

AuthorizationBearer

Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.

Path parameters

testset_idstringRequired

The testset ID returned as id by the API.

Request

This endpoint expects an object or a list of objects.
objectRequired
OR
list of objectsRequired
Batch create rows in a single request.

Response

Created row or rows.
object
OR
list of objects

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error