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
name
string | null
discoveryUrl
string | null
testAccount
object | null
basicAuth
object | null
privateLocationName
string | null

name of the private location

additionalHeaderFields
object | null

Response

200

Environment updated successfully