For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTCreate a testset
      • POSTList testsets
      • GETRetrieve a testset
      • PATCHUpdate a testset
      • DELDelete a testset
      • POSTCreate testset rows
      • GETList testset rows
      • PATCHUpdate a testset row
      • DELDelete a testset row
      • POSTGet filtered testsets summary
      • PUTReplace a testset
      • DELDelete testset rows
      • GETRetrieve a testset row
      • PUTReplace a testset row
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceTestsets

Replace a testset row

PUT
https://api.respan.ai/api/testsets/:testset_id/rows/:row_index/
PUT
/api/testsets/:testset_id/rows/:row_index/
$curl -X PUT https://api.respan.ai/api/testsets/testset_id/rows/row_index/ \
> -H "Authorization: Bearer <respanApiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "row_data": {
> "input": "What is 3 + 3?",
> "expected_output": "6"
> }
>}'
1{
2 "row_index": 1,
3 "testset_id": "6f41f95bb8c04656b6f6d9d5a98f4f2c",
4 "row_data": {
5 "input": "What is 2 + 2?",
6 "expected_output": "4"
7 }
8}
Replace the payload for a single row.
Was this page helpful?
Previous

Create an evaluator

Next
Built with

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.

row_indexstringRequired

The row index returned by the API. Decimal values are allowed, for example 1 or 1.5.

Request

This endpoint expects an object.
row_dataobjectRequired
Updated row payload keyed by testset column field.

Response

Updated row.
row_indexdouble
Row index. Decimal values can be returned after reordering.
testset_idstring
Parent testset ID.
row_dataobject
Row payload keyed by testset column field.

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error