POST
/
api
/
workers
/
{workerId}
/
tests
curl --request POST \
  --url https://brainbase-monorepo-api.onrender.com/api/workers/{workerId}/tests \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "checkpoints": [
    {
      "name": "<string>",
      "description": "<string>",
      "runs": 123,
      "tolerance": 123
    }
  ],
  "testMode": "<string>",
  "systemPrompt": "<string>",
  "flowId": "<string>"
}'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "name": "<string>",
  "description": "<string>",
  "testMode": "<string>",
  "websocketUrl": "<string>",
  "systemPrompt": "<string>",
  "checkpoints": {},
  "workerId": "<string>",
  "flowId": "<string>"
}

Authorizations

x-api-key
string
header
required

API key authentication

Path Parameters

workerId
string
required

Body

application/json

Response

201
application/json

Test created

The response is of type object.