POST /api/v1/projects/{project_id}/environments
Requires environments.write permission. The current region is automatically assigned to the new environment.
Path parameters
UUID of the project.
Request body
Machine-readable identifier for the environment. Example:
production.Human-readable display name. Example:
Production.Optional description. Pass
null to leave it unset.Response
The newly created environment.
Errors
| Status | When |
|---|---|
400 | Request body is invalid or missing required fields |
403 | Caller lacks environments.write permission |
409 | An environment with the same key already exists in this project |