Skip to main content
PUT
/
test-sets
/
{test_set_id}
/
requests
/
{request_id}
/
response
Update test set request response
curl --request PUT \
  --url https://api.trymaitai.ai/api/v1/test-sets/{test_set_id}/requests/{request_id}/response \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "test_set_request_id": 7700,
  "message_content": "Corrected gold response text."
}
'
{
  "data": {
    "status": "success"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

test_set_id
integer
required
request_id
string
required

Body

application/json
test_set_request_id
integer
required

ID of the test set request row to update (test_set_request_id, NOT the underlying request_id).

message_content
string
required

New gold response content (assistant message).

tool_calls
object[]

Optional tool/function-call payload that should accompany the corrected assistant message.

Response

200 - application/json

Update test set request response.

data
any