GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
test-cases
/
{testCaseId}
/
code
curl --request GET \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-cases/{testCaseId}/code \
  --header 'X-API-Key: <api-key>'
{
  "testCode": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string
required

The ID of the test target

testCaseId
string
required

The ID of the test case

Query Parameters

executionUrl
string
required

The URL where the test will be executed

environmentId
string

Optional ID of the environment to use

Response

200
application/json

Test case code retrieved successfully

The response is of type object.