Create Environment
Changed onCreate a custom environment in a workspace. The stable key slug is auto-derived from the title server-side (lowercased, non-alphanumeric runs collapsed to -, capped at 50 characters) and frozen thereafter — clients never send a key. Titles that collide with a built-in environment name (Production / Staging) or derive to a key already in use are rejected.
Requires Workspace Owner or Workspace Creator role. Plan-gated: the plan must include the custom-environments feature and the workspace must be within its custom-environment limit.
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.
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
Workspace ID
Request body
Example request
{
"title": "QA",
"description": "Pre-release verification",
"color": "#6A7184",
"order": 1
}Response
Created 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