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",
"type": "LOGIN"
}'
{
"discoveryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
Create a new test case discovery with a given name and prompt
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",
"type": "LOGIN"
}'
{
"discoveryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"testCaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
The ID of the test target
Discovery created successfully
The response is of type object
.