> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# mergeEnvironment

> Merge data from an existing environment to another environment or to a new environment



**mutation** `mergeEnvironment(input: MergeEnvironmentInput!): MergeEnvironment!`

## Arguments

**`input`**: `MergeEnvironmentInput!` (required)

## Returns

`MergeEnvironment!`

**`environmentSlug`**: `String!`

Slug of the environment that was created or merged into

---

**`taskIds`**: `[String!]!`

List of task IDs related to the asynchronous merge process

## Examples

```graphql Mutation
mutation MergeEnvironment($input: MergeEnvironmentInput!) {
  mergeEnvironment(input: $input) {
    environmentSlug
    taskIds
  }
}
```

```json Variables
{
  "input": {}
}
```

```json Response
{
  "data": {
    "mergeEnvironment": {
      "environmentSlug": "string",
      "taskIds": [
        "string"
      ]
    }
  }
}
```


## Related topics

- [MergeEnvironment](https://docs.stigg.io/graphql-reference/types/MergeEnvironment.md)
- [MergeEnvironmentInput](https://docs.stigg.io/graphql-reference/types/MergeEnvironmentInput.md)
- [mergeEnvironmentAsync](https://docs.stigg.io/graphql-reference/mutations/mergeEnvironmentAsync.md)
- [ValidateMergeEnvironment](https://docs.stigg.io/graphql-reference/types/ValidateMergeEnvironment.md)
- [validateMergeEnvironment](https://docs.stigg.io/graphql-reference/queries/validateMergeEnvironment.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.