> ## 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.

# updateOneEnvironment



**mutation** `updateOneEnvironment(input: UpdateOneEnvironmentInput!): Environment!`

## Arguments

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

## Returns

`Environment!`

**`account`**: `Account`

---

**`apiKeys`**: `[ApiKey!]!`

**Arguments:**

- `filter`: `ApiKeyFilter` = {} — Specify to filter the records returned.
- `sorting`: `[ApiKeySort!]` = [] — Specify to sort results.

---

**`color`**: `String`

The color associated with the environment, used for UI representation

---

**`createdAt`**: `DateTime`

Timestamp of when the record was created

---

**`description`**: `String`

The description of the environment

---

**`displayName`**: `String!`

The display name of the environment

---

**`hardenClientAccessEnabled`**: `Boolean!`

Whether hardened client access is enabled for the environment

---

**`id`**: `UUID!`

Unique identifier for the entity

---

**`isSandbox`**: `Boolean!`

Whether the environment is a sandbox environment

---

**`permanentDeletionDate`**: `DateTime`

The date when the environment will be permanently deleted, if applicable

---

**`provisionStatus`**: `EnvironmentProvisionStatus`

The provisioning status of the environment, e.g. "PROVISIONED" or "PROVISIONING"

---

**`signingToken`**: `String!`

The signing token for the environment, used for secure communication

---

**`slug`**: `String!`

The slug of the environment, used in URLs

---

**`type`**: `EnvironmentType!`

The type of the environment, e.g. "DEVELOPMENT", "PRODUCTION", or "SANDBOX"

## Examples

```graphql Mutation
mutation UpdateOneEnvironment($input: UpdateOneEnvironmentInput!) {
  updateOneEnvironment(input: $input) {
    account {
      accessMethod
      accountEmailDomain
      accountStatus
      defaultSSORoles {
        accountRole
        nonProductionRole
        productionRole
      }
      displayName
      emailDomains {
        accountId
        domain
        id
      }
    }
    apiKeys {
      createdAt
      description
      displayName
      environmentId
      expireAt
      id
    }
    color
    createdAt
    description
    displayName
  }
}
```

```json Variables
{
  "input": {
    "id": "value",
    "update": {}
  }
}
```

```json Response
{
  "data": {
    "updateOneEnvironment": {
      "account": {
        "accessMethod": "AUTHORIZED_DOMAIN",
        "accountEmailDomain": "string",
        "accountStatus": "ACTIVE",
        "defaultSSORoles": {
          "accountRole": "MEMBER",
          "nonProductionRole": "ADMIN",
          "productionRole": "ADMIN"
        },
        "displayName": "string",
        "emailDomains": [
          {
            "accountId": "value",
            "domain": "string",
            "id": "value"
          }
        ]
      },
      "apiKeys": [
        {
          "createdAt": "value",
          "description": "string",
          "displayName": "string",
          "environmentId": "value",
          "expireAt": "value",
          "id": "value"
        }
      ],
      "color": "string",
      "createdAt": "value",
      "description": "string",
      "displayName": "string"
    }
  }
}
```


## Related topics

- [UpdateOneEnvironmentInput](https://docs.stigg.io/graphql-reference/types/UpdateOneEnvironmentInput.md)
- [Environments](https://docs.stigg.io/documentation/managing-your-account/environments/index.md)
- [updateOneCustomer](https://docs.stigg.io/graphql-reference/mutations/updateOneCustomer.md)
- [updateOneExperiment](https://docs.stigg.io/graphql-reference/mutations/updateOneExperiment.md)
- [updateOneAddon](https://docs.stigg.io/graphql-reference/mutations/updateOneAddon.md)


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