Skip to main content
PATCH
Update an environment

Authorizations

Authorization
string
header
required

An API key from your Devic console, sent as Authorization: Bearer <key>. An embedded front end sends a tenant-session token instead, so no API key reaches the browser, and an OAuth integration sends its access token. Missing, invalid or expired credentials get a 401. See Authentication.

Path Parameters

environmentId
string
required

Environment id

Body

application/json
name
string

Environment name

Example:

"Reporting box"

description
string

What this environment is for

projectId
string

Project id, or null to unassign the environment from its project.

imgUrl
string

Image URL for the environment

availableToolsGroupsUids
string[]

Tool groups (MCPs and built-in tools) available on this environment

knowledgeDocumentIds
string[]

Knowledge documents attached

knowledgeFolderIds
string[]

Knowledge folders attached

knowledgeSkills
object[]

Knowledge skills attached

envVars
object

Environment-level variables, encrypted at rest and returned masked. Available to every agent and assistant connected to this environment.

Example:
sandboxConfig
object

Sandbox configuration

Response

Success