forkEnvironment
Create a new environment by forking an existing one.
The new environment is linked to the parent via its parent field. Instances
are initialized from the project's components and seeded with the parent's
instance params. Secrets and remote references are not copied — use
copyInstance per instance to carry those over as well. Pass
copyEnvironmentDefaults: true to also copy the parent's default resource
connections.
forkEnvironment(
organizationId: ID!
parentId: ID!
input: ForkEnvironmentInput!
): EnvironmentPayload
Form Schema
This mutation supports dynamic form generation using JSON Schema.
Loading schema...
Arguments
forkEnvironment.organizationId ● ID! non-null scalar {#organization-id}
Your organization's unique identifier.
forkEnvironment.parentId ● ID! non-null scalar {#parent-id}
The identifier of the environment to fork from.
forkEnvironment.input ● ForkEnvironmentInput! non-null input {#input}
Attributes for the new environment. The fork references the parent via parentId, starts with blank instances, and does not copy any instance-level configuration. Use copyInstance per-instance if you want to seed configuration from the parent.