POST
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
batch-generations
Create a batch generation
curl --request POST \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/batch-generations \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "prompt": "<string>",
  "imageUrls": [
    "<string>"
  ],
  "entryPointUrlPath": "<string>",
  "environmentId": "<string>",
  "prerequisiteId": "<string>",
  "baseUrl": "<string>",
  "context": {
    "source": "github",
    "issueNumber": 123,
    "ref": "refs/heads/main",
    "sha": "abc123def456",
    "repo": "my-repo",
    "owner": "repo-owner",
    "triggeredBy": {
      "type": "USER",
      "userId": "user123"
    },
    "nodeId": "node-123"
  }
}'
{
  "batchGenerationId": "826c15af-644b-4b28-89b4-f50ff34e46b7"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string<uuid>
required

ID of the test target

Body

application/json

Response

200
application/json

Batch generation created successfully

The response is of type object.