Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
agent-datasets
/
{dataset_id}
/
test-cases
/
bulk
Bulk Create Agent Test Cases
curl --request POST \
  --url https://{host}.freeplay.ai/api/v2/projects/{project_id}/agent-datasets/{dataset_id}/test-cases/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "inputs": true,
      "outputs": true,
      "metadata": {}
    }
  ]
}
'
{
  "data": [
    {
      "id": "bf56b063-80dc-4ad5-91f6-f7067ad1fa06",
      "input": true,
      "output": true,
      "metadata": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required
dataset_id
string
required

Body

application/json
data
AgentTestCase · object[]
required

Response

201 - application/json

BulkCreateAgentTestCasesResponse(data: list[server.api_routes.agent_datasets_api_v2.AgentTestCaseResponse])

data
AgentTestCaseResponse · object[]
required