Actions40
- Audit Log Actions
- Dynamic Secret Actions
- Environment Actions
- Folder Actions
- Identity Actions
- Project Actions
- Secret Actions
- Secret Import Actions
- Secret Tag Actions
Environment → Update
AI-generatedSummary
Update an existing environment within a project, optionally changing its name, slug, and position.
Inputs
- projectId (required) — The project to operate on
- environmentId (required) — The ID of the environment
- name — The new display name of the environment
- slug — The new slug of the environment
- position — The ordering position of the environment
- batchSize — Input will be split in batches to throttle requests. -1 for disabled. 0 treated as 1.
- batchInterval — Time (in milliseconds) between each batch of requests. 0 for disabled.
- allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
- proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
- timeout — Time in ms to wait for the server to send response headers before aborting the request
Output shape
a single environment object
The response contains the updated environment details; no additional pagination or error envelope is specified.
Examples
Example 1: Update an environment's name and slug
Set projectId to the target project, environmentId to the environment's slug, provide name and slug values, optionally set position, and leave Request Options blank.
Example 2: Bulk update multiple environments with custom position
Configure batchSize and batchInterval for throttling, enable allowUnauthorizedCerts if needed, specify projectId and environmentId for each update, and add position values.