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": 44643,
"name": "DesktopConfig",
"platform": "desktop",
"environments": [
{
"os": "macOS",
"os_name": "macOS",
"os_id": "macOS",
"os_version": "macOS Tahoe",
"os_version_id": "OSV100021498719908712",
"browser": "Chrome",
"browser_id": "BRS100021498722190810",
"browser_version": "143",
"browser_version_id": "BRV19216818160455129266",
"resolution": "3840x2160",
"resolution_id": "RES100021498719938809",
"url": "",
"platform_type": "web"
}
]
}'
{
"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": 44643,
"name": "DesktopConfig",
"platform": "desktop",
"environments": [
{
"os": "macOS",
"os_name": "macOS",
"os_id": "macOS",
"os_version": "macOS Tahoe",
"os_version_id": "OSV100021498719908712",
"browser": "Chrome",
"browser_id": "BRS100021498722190810",
"browser_version": "143",
"browser_version_id": "BRV19216818160455129266",
"resolution": "3840x2160",
"resolution_id": "RES100021498719938809",
"url": "",
"platform_type": "web"
}
]
}'
{
"type": "success",
"message": "Environment updated successfully"
}