POST
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
discoveries
curl --request POST \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/discoveries \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "Login Flow Validation",
  "prompt": "Verify that users can successfully log in with valid credentials and see their dashboard.",
  "entryPointUrlPath": "/login",
  "prerequisiteName": "Login Test",
  "externalId": "JIRA-1234",
  "tagNames": [
    "authentication",
    "critical-path",
    "smoke-test"
  ],
  "folderName": "Authentication Tests"
}'
{
  "discoveryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string
required

The ID of the test target

Body

application/json

Response

200
application/json
Discovery created successfully

The response is of type object.