PATCH
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
environments
/
{environmentId}
curl --request PATCH \
  --url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/environments/{environmentId} \
  --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": {}
}'

Authorizations

X-API-Key
string
header
required

Path Parameters

testTargetId
string
required

ID of the test target to which the environment belongs to

environmentId
string
required

ID of the environment to update

Body

application/json

Response

200

Environment updated successfully