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

# Update environment

> Update environment configuration. Supports webhook settings, settlement defaults, and activation status.



## OpenAPI

````yaml https://api-staging.keystoneos.xyz/openapi.json patch /v1/platforms/me/environments/{environment_id}
openapi: 3.1.0
info:
  title: Keystone API
  description: Settlement orchestration API for tokenized Real-World Assets (RWAs).
  version: 0.1.0
servers:
  - url: https://api.keystoneos.xyz
    description: Production
security:
  - bearerAuth: []
tags:
  - name: health
    description: Health and version checks.
  - name: platforms
    description: Register and manage your platform profile.
  - name: environments
    description: Manage platform environments (sandbox, production).
  - name: settlement-templates
    description: View and manage settlement templates.
  - name: settlements
    description: Initiate, monitor, and manage settlements.
  - name: sessions
    description: Create and manage browser-safe session tokens for frontend widgets.
  - name: instructions
    description: Submit and manage bilateral settlement instructions.
  - name: invitations
    description: Invite team members to your platform.
  - name: members
    description: Manage platform team members and roles.
  - name: webhooks
    description: Configure webhook endpoints for real-time event notifications.
  - name: security
    description: IP allowlisting and API access controls.
  - name: activity
    description: Audit trail of platform actions.
  - name: dashboard
    description: Dashboard metrics and statistics.
  - name: callbacks
    description: Provider callback handlers (internal).
  - name: alchemy-webhooks
    description: Alchemy blockchain event webhooks (internal).
  - name: chains
    description: Supported blockchain networks for settlement.
  - name: admin
    description: KeyStone internal administration endpoints.
  - name: admin-platforms
    description: Admin platform management.
  - name: admin-settlements
    description: Admin settlement oversight and intervention.
  - name: admin-compliance
    description: Admin compliance check management.
  - name: admin-activity
    description: Admin system-wide activity logs.
  - name: admin-webhooks
    description: Admin webhook diagnostics.
  - name: internal
    description: Keystone-internal worker endpoints.
  - name: internal-compliance
    description: Internal compliance engine endpoints.
paths:
  /v1/platforms/me/environments/{environment_id}:
    patch:
      tags:
        - environments
      summary: Update environment
      description: >-
        Update environment configuration. Supports webhook settings, settlement
        defaults, and activation status.
      operationId: >-
        update_platform_environment_v1_platforms_me_environments__environment_id__patch
      parameters:
        - name: environment_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Environment Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EnvironmentUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentRead'
        '422':
          description: No fields provided or validation error.
components:
  schemas:
    EnvironmentUpdate:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        webhook_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Secret
        default_timeout_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          title: Default Timeout Seconds
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
        rate_limit_rpm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rate Limit Rpm
      type: object
      title: EnvironmentUpdate
    EnvironmentRead:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        platform_id:
          type: string
          format: uuid
          title: Platform Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        type:
          $ref: '#/components/schemas/EnvironmentType'
        auth0_client_id:
          type: string
          title: Auth0 Client Id
        webhook_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Webhook Url
        api_version:
          anyOf:
            - type: string
            - type: 'null'
          title: Api Version
        default_timeout_seconds:
          type: integer
          title: Default Timeout Seconds
        is_active:
          type: boolean
          title: Is Active
        rate_limit_rpm:
          anyOf:
            - type: integer
            - type: 'null'
          title: Rate Limit Rpm
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - platform_id
        - name
        - slug
        - type
        - auth0_client_id
        - webhook_url
        - api_version
        - default_timeout_seconds
        - is_active
        - rate_limit_rpm
        - created_at
        - updated_at
      title: EnvironmentRead
    EnvironmentType:
      type: string
      enum:
        - development
        - staging
        - production
      title: EnvironmentType
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Auth0 JWT access token. See
        [Authentication](/getting-started/authentication) for details.

````