Skip to main content
PUT
/
requests
/
{request_id}
/
response
Update request response
curl --request PUT \
  --url https://api.trymaitai.ai/api/v1/requests/{request_id}/response \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Corrected response text."
      }
    }
  ]
}
'
{
  "data": {
    "message": "Response updated"
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

request_id
string
required

Body

application/json
choices
array

Response

200 - application/json

Update request response.

data
any