Actions40
- Audit Log Actions
- Dynamic Secret Actions
- Environment Actions
- Folder Actions
- Identity Actions
- Project Actions
- Secret Actions
- Secret Import Actions
- Secret Tag Actions
Environment → Create
AI-generatedSummary
Create a new environment in a project.
Inputs
- projectId (required) — Identifier of the project to create the environment in; can be selected from a list or provided as an ID.
- name (required) — Display name of the new environment.
- slug (required) — Unique slug for the environment; used in URLs.
- requestOptions — Collection of optional request settings such as batch size, interval, proxy, timeout, and SSL verification.
- allowUnauthorizedCerts — If true, skips SSL certificate validation for the request.
- proxy — HTTP proxy URL to use for the request, optionally with authentication.
- timeout — Request timeout in milliseconds.
Output shape
a single environment object
The response contains the created environment's details; fields typically include id, slug, name, and status.
Examples
Example 1: Create a dev environment in project 'my-project'.
{ "operation": "create", "resource": "environment", "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "dev", "slug": "dev" }
Example 2: Create a staging environment with custom timeout and batch settings.
{ "operation": "create", "resource": "environment", "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "staging", "slug": "staging", "requestOptions": { "batch": { "batchSize": 50, "batchInterval": 1000 } }, "timeout": 15000 }