Update computer

PUT/v1/environments/{environmentId}

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
environmentIdpathstringYesEnvironment ID
Query parameters
None.

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
projectIdstringNoOptional project that owns this computer.
namestringYesHuman-readable computer name.
descriptionstringNoDescription of what this computer is used for.
environmentVariablesobject[]NoPlaintext environment variables injected into the workspace.
environmentVariables[].keystringNo
environmentVariables[].valuestringNo
secretsobject[]NoSecret values mounted into the workspace at runtime.
setupScriptsstring[]NoShell commands to run during workspace setup.
mcpServersobject[]NoMCP servers connected to the computer.
mcpServers[].namestringNoHuman-readable name.
mcpServers[].typestdio | httpNo
mcpServers[].commandstringNoFor stdio servers
mcpServers[].argsstring[]No
mcpServers[].urlstringNoFor HTTP servers
mcpServers[].bearerTokenstringNo
mcpServers[].enabledbooleanNo
internetAccessbooleanNoWhether the computer may access the public internet.
isDefaultbooleanNoMark this computer as the default for the workspace.
computeProfilelite | standard | power | desktopNoPreferred ACP computer profile. Lite is the default for user default computers, Standard for other computers.
baseImagestringNoBase image used for the workspace container.
dockerfileExtensionsstringNoAdditional Dockerfile instructions appended to the generated base.
runtimesobjectNoRuntime versions to pin, such as Node or Python.
packagesobjectNo
packages.systemstring[]No
packages.pythonstring[]No
packages.nodestring[]No
guiEnabledbooleanNoBackwards-compatible alias. When true, ACP upgrades the computer to the Desktop profile.
officeAppsEnabledbooleanNoBackwards-compatible alias. When true, ACP upgrades the computer to the Desktop profile.
metadataobjectNoFree-form metadata object.
metadata.computeProfilelite | standard | power | desktopNoNamed ACP computer profile controlling runtime resources and pricing.
metadata.computeResourcesobjectNo
metadata.computeResources.cpuCoresnumberNo
metadata.computeResources.memoryMbintegerNo
metadata.pricingobjectNo
metadata.pricing.minutePricenumberNoRuntime price in USD per minute for the selected computer profile.
metadata.guiEnabledbooleanNoWhether this computer profile exposes a GUI session.
metadata.officeAppsEnabledbooleanNoWhether desktop productivity apps are enabled for this computer profile.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Environment updatedapplication/json
FieldTypeRequiredDescription
environmentobjectNo
environment.idstringNoUnique identifier.
environment.projectIdstringNoProject ID.
environment.namestringNoHuman-readable name.
environment.descriptionstringNoHuman-readable description.
environment.environmentVariablesobject[]No
environment.environmentVariables[].keystringNo
environment.environmentVariables[].valuestringNo
environment.secretsobject[]No
environment.setupScriptsstring[]No
environment.mcpServersobject[]No
environment.mcpServers[].namestringNoHuman-readable name.
environment.mcpServers[].typestdio | httpNo
environment.mcpServers[].commandstringNoFor stdio servers
environment.mcpServers[].argsstring[]No
environment.mcpServers[].urlstringNoFor HTTP servers
environment.mcpServers[].bearerTokenstringNo
environment.mcpServers[].enabledbooleanNo
environment.internetAccessbooleanNo
environment.isDefaultbooleanNo
environment.baseImagestringNo
environment.dockerfileExtensionsstringNo
environment.runtimesobjectNo
environment.packagesobjectNo
environment.packages.systemstring[]No
environment.packages.pythonstring[]No
environment.packages.nodestring[]No
environment.metadataobjectNoFree-form metadata object.
environment.metadata.computeProfilelite | standard | power | desktopNoNamed ACP computer profile controlling runtime resources and pricing.
environment.metadata.computeResourcesobjectNo
environment.metadata.computeResources.cpuCoresnumberNo
environment.metadata.computeResources.memoryMbintegerNo
environment.metadata.pricingobjectNo
environment.metadata.pricing.minutePricenumberNoRuntime price in USD per minute for the selected computer profile.
environment.metadata.guiEnabledbooleanNoWhether this computer profile exposes a GUI session.
environment.metadata.officeAppsEnabledbooleanNoWhether desktop productivity apps are enabled for this computer profile.
environment.buildStatusstringNo
environment.buildErrorstringNo
environment.imageTagstringNo
environment.lastBuildAtstringNo
environment.createdAtstringNoISO 8601 timestamp.
environment.updatedAtstringNoISO 8601 timestamp.
Update computer
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow