Environment › Update Environment
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.
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 Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body application/json id integer required
Configuration ID (required for update)
name string required
Configuration name (required)
platform string
Platform type (optional)
environments array required
Response 200▼
application/json Environment updated successfully
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"
}