Skip to main content
EnvironmentUpdate Environment
TestMu AI
StatusCommunityBlog
Environment

Update Environment

Update existing configuration for a specific configuration ID. Note the configuration ID is dynamic and must be fetched from the 'get environments' API before each update.

PUT
/api/v1/environments
Update Environment
curl --request PUT \
--url "https://test-manager-api.lambdatest.com//api/v1/environments" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"id": 0,
"name": "<name>",
"platform": "<platform>",
"environments": []
}'
{
"type": "success",
"message": "Environment updated successfully"
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
idintegerrequired

Configuration ID (required for update)

namestringrequired

Configuration name (required)

platformstring

Platform type (optional)

environmentsarrayrequired

Response

application/json

Environment updated successfully

typestring
messagestring
Update Environment
curl --request PUT \
--url "https://test-manager-api.lambdatest.com//api/v1/environments" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"id": 0,
"name": "<name>",
"platform": "<platform>",
"environments": []
}'
{
"type": "success",
"message": "Environment updated successfully"
}