Skip to main content
POST
/
test-sets
/
{test_set_id}
/
requests
Add requests to test set
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/test-sets/{test_set_id}/requests \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "request_ids": [
    "req_abc123",
    "req_def456"
  ]
}
'
{
  "data": {
    "message": "Requests added"
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

test_set_id
integer
required

Body

application/json
request_ids
string[]
required

Response

200 - application/json

Add requests to test set.

data
any