Authorizations
Path Parameters
The ID of the test target
Body
application/json
Response
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 Form Validation Test",
"entryPointUrlPath": "/login",
"prerequisiteName": "Cookie Banner Acceptance",
"externalId": "ext-test-001",
"tagNames": [
"authentication",
"forms",
"validation"
],
"prompt": "Test the login form with valid and invalid credentials",
"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 Form Validation Test",
"entryPointUrlPath": "/login",
"prerequisiteName": "Cookie Banner Acceptance",
"externalId": "ext-test-001",
"tagNames": [
"authentication",
"forms",
"validation"
],
"prompt": "Test the login form with valid and invalid credentials",
"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
.