POST
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
environments
curl --request POST \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/environments \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "discoveryUrl": "<string>",
  "testAccount": {
    "username": "<string>",
    "password": "<string>",
    "otpInitializerKey": "<string>"
  },
  "basicAuth": {
    "username": "<string>",
    "password": "<string>"
  },
  "privateLocationName": "<string>",
  "additionalHeaderFields": {}
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "testTargetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updatedAt": "2023-11-07T05:31:56Z",
  "type": "<string>",
  "discoveryUrl": "<string>",
  "additionalHeaderFields": {},
  "testAccount": {
    "username": "<string>",
    "password": "<string>",
    "otpInitializerKey": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "basicAuth": {
    "username": "<string>",
    "password": "<string>",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "privateLocation": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "status": "<string>",
    "type": "<string>"
  }
}

Creates a new custom enviroment. Custom enviroment can have a different test account, different basic authentication or different headers.

See more on environments

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string
required

ID of the test target to which the environment belongs to

Body

application/json
name
string
discoveryUrl
string
testAccount
object | null
basicAuth
object | null
privateLocationName
string

name of the private location

additionalHeaderFields
object | null

Response

201 - application/json
environment created
id
string
name
string
testTargetId
string
updatedAt
string
type
string
discoveryUrl
string
additionalHeaderFields
object | null
testAccount
object | null
basicAuth
object | null
privateLocation
object