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
      • GETGet testsets summary
      • 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

Update a testset row

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

Delete a testset row

Next
Built with

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.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Request

This endpoint expects an object.
row_dataobjectOptional
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