createEnvironment
Create a new environment in a project.
The id in the input becomes the environment's permanent identifier and cannot be
changed after creation. The new environment starts empty with no deployed instances.
createEnvironment(
organizationId: ID!
projectId: ID!
input: CreateEnvironmentInput!
): EnvironmentPayload
Form Schema
This mutation supports dynamic form generation using JSON Schema.
Loading schema...
Arguments
createEnvironment.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
createEnvironment.projectId ● ID! non-null scalar {#project-id}
The identifier of the project to create the environment in.
createEnvironment.input ● CreateEnvironmentInput! non-null input {#input}
Create a new environment. Environments are isolated deployment contexts like production, staging, or development, each with independent secrets and configurations.