Environments
Update Environment
Changed onUpdate a custom environment’s title, description, color or order. The key slug is frozen at create time — renaming the title never re-derives it, so references to the environment stay valid. The built-in environments (production / staging) cannot be edited, and org-scoped environments cannot be edited from the workspace routes.
Requires Workspace Owner or Workspace Creator role.
Note: Environment APIs are available only with self-hosted Enterprise plans and cloud-hosted plans. Creating custom environments requires a plan that includes the custom-environments feature.
patch/api/v3/meta/workspaces/{workspaceId}/environments/{environmentId}
Request
- Base URLhttps://app.nocodb.com
- Auth
- API key in header xc-token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspaceIdstring required
Workspace ID
environmentIdstring required
Environment ID
Request body
Example request
{
"title": "QA Renamed",
"description": "Pre-release verification",
"color": "#c2410c",
"order": 1
}Response
Updated environment
Example response
{
"id": "envabc12345",
"key": "qa",
"title": "QA",
"description": "Pre-release verification",
"color": "#6A7184",
"workspace_id": "w6dw3fo0",
"org_id": "org123",
"created_by": "usr1234567"
}Changes
- info
endpoint added
- info