Environments
Create Organization Environment
Changed onCreate a custom environment at the organization level, shared by all of the organization’s workspaces. The stable key slug is auto-derived from the title server-side 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 Org Owner role. Available on cloud-hosted plans with organizations.
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.
post/api/v3/meta/orgs/{orgId}/environments
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
orgIdstring required
Organization 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