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

# Set what a cluster is called and what it is for

> Sets the environment label and, when the body carries one, the criticality that decides how loudly the cluster reports. Both are written in a single transaction because to the operator they are one decision: picking an environment without a matching criticality is how a cluster ends up labelled for testing while the insight scanner still grades every finding on it at production weight. A body without a criticality leaves the stored one untouched and answers with the environment alone, which is the shape every caller written before the two settings were merged sends and expects.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json patch /org/clusters/imported/{cluster_id}/environment
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/clusters/imported/{cluster_id}/environment:
    patch:
      summary: Set what a cluster is called and what it is for
      description: >-
        Sets the environment label and, when the body carries one, the
        criticality that decides how loudly the cluster reports. Both are
        written in a single transaction because to the operator they are one
        decision: picking an environment without a matching criticality is how a
        cluster ends up labelled for testing while the insight scanner still
        grades every finding on it at production weight. A body without a
        criticality leaves the stored one untouched and answers with the
        environment alone, which is the shape every caller written before the
        two settings were merged sends and expects.
      operationId: update_cluster_environment
      parameters:
        - in: path
          name: cluster_id
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                criticality:
                  enum:
                    - production
                    - staging
                    - development
                    - disposable
                  type: string
                environment:
                  maxLength: 50
                  minLength: 1
                  type: string
              required:
                - environment
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  criticality:
                    enum:
                      - production
                      - staging
                      - development
                      - disposable
                    type: string
                  environment:
                    type: string
                type: object
          description: >-
            The stored environment, and the stored criticality when the request
            set one
        '404':
          description: Cluster not found
        '422':
          description: Invalid environment, or an unknown criticality

````