Discoveries
Create a discovery
Test targets
Environments
Reports
Notifications
Private locations
Discoveries
Discoveries
Create a discovery
Create a new test case discovery with a given name and prompt
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
Path Parameters
The ID of the test target
Body
application/json
Response
200
application/json
Discovery created successfully
The response is of type object
.
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"
}