---
title: "Replace a testset row"
method: PUT
path: "/api/testsets/{testset_id}/rows/{row_index}/"
tags: ["testsets"]
---

# Replace a testset row

`PUT /api/testsets/{testset_id}/rows/{row_index}/`

Replace the payload for a single row.

## Path parameters

- `testset_id` string, required
- `row_index` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `row_data` ApiTestsetsTestsetIdRowsRowIndexPutRequestBodyContentApplicationJsonSchemaRowData, required — Updated row payload keyed by testset column field.

## Response `200`

Updated row.

- TestsetsReplaceTestsetRowResponse200
  - `row_index` number, double, required — Row index. Decimal values can be returned after reordering.
  - `testset_id` string, required — Parent testset ID.
  - `row_data` ApiTestsetsTestsetIdRowsRowIndexPutResponsesContentApplicationJsonSchemaRowData, required — Row payload keyed by testset column field.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication
- `404` — Not Found

---

[API](https://skmtc.dev/respan/apis/api-reference.md) · [All operations](https://skmtc.dev/respan/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/respan/api-reference/revisions/764fca4d43e4/schema)
