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

# Update Config

> Update deploy configuration for an environment, including per-component overrides.



## OpenAPI

````yaml PATCH /orgs/{org_id}/projects/{project_id}/envs/{env_id}/config
openapi: 3.1.0
info:
  title: Timbal Platform API
  description: Public API documentation for the Timbal platform
  license:
    name: ''
  version: 2.0.0
servers:
  - url: https://api.timbal.ai
    description: Production
  - url: https://api.dev.timbal.ai
    description: Development
security: []
tags:
  - name: ace
    description: Action Control Engine (ACE) operations
  - name: alarms
    description: Metric series and threshold alarms
  - name: analytics
    description: Org and project analytics
  - name: billing
    description: Subscriptions, usage, and payment-related operations
  - name: channels
    description: Delivery channels alarms notify through
  - name: content
    description: Re-sign stored content URLs
  - name: files
    description: File operations
  - name: iam
    description: IAM — actions, roles, users, and authorization introspection
  - name: k2
    description: Knowledge Bases v2 operations
  - name: orgs
    description: Organization operations
  - name: projects
    description: Project operations
  - name: runs
    description: Execution operations
  - name: templates
    description: Public project template catalog
  - name: users
    description: Authenticated user profile
paths:
  /orgs/{org_id}/projects/{project_id}/envs/{env_id}/config:
    patch:
      tags:
        - projects
      description: >-
        Update deploy configuration for an environment, including per-component
        overrides.
      operationId: handler
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
        - name: project_id
          in: path
          required: true
          schema:
            type: string
        - name: env_id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateEnvConfigReqBody'
        required: true
      responses:
        '200':
          description: Configuration updated successfully
        '400':
          description: Invalid component key or configuration value
        '403':
          description: Insufficient permissions
      security:
        - bearer_auth: []
components:
  schemas:
    UpdateEnvConfigReqBody:
      type: object
      required:
        - components
      properties:
        components:
          type: object
          description: |-
            Per-component overrides, keyed by `"api"` or a workforce
            `OrgsApps.id`. Each entry sent REPLACES the stored entry wholesale
            (it is the ground truth for that component); `null` removes the
            entry so the component falls back to the env/app-level layering.
            Keys not present in the map are left untouched.
          additionalProperties:
            $ref: '#/components/schemas/ComponentConfigEntry'
          propertyNames:
            type: string
        cpu:
          type:
            - integer
            - 'null'
          format: int32
        desired_count:
          type:
            - integer
            - 'null'
          format: int32
        ephemeral_storage:
          type:
            - integer
            - 'null'
          format: int32
        evals:
          type:
            - boolean
            - 'null'
          description: |-
            Deploy-time eval gate (GitHub-Actions-style required check):
            `true` arms it for every workforce component in this env — deploys
            run the component's committed evals first and fail on a non-pass.
            `false` disarms. Omit to leave unchanged. Per-component override
            lives on `OrgsApps.deploy_config.evals`.
        evals_on_push:
          type:
            - boolean
            - 'null'
          description: |-
            Push-triggered CI eval runs: `true` runs the eval suite of every
            component with eval files on each push to this env's branch —
            report-only (`trigger_type = 'push'` on the runs), gates nothing.
            Per component, skipped when that component's deploy gate is armed
            (env- or app-level `evals`), since the gate already runs those
            evals on the push-triggered redeploy. Omit to leave unchanged.
        memory:
          type:
            - integer
            - 'null'
          format: int32
    ComponentConfigEntry:
      type: object
      description: >-
        Per-component deploy override stored under

        `ProjectEnvs.deploy_config.components[key]`. When set, the entry is the

        GROUND TRUTH for that component: its config resolves as type defaults +

        this entry only (env flat keys and app-level `OrgsApps.deploy_config`
        are

        skipped), and `deploy_mode` here overrides both the app and env modes.
      properties:
        cpu:
          type:
            - integer
            - 'null'
          format: int32
        deploy_mode:
          type:
            - string
            - 'null'
          description: '''ecs'' | ''serverless'' | ''disabled'''
        desired_count:
          type:
            - integer
            - 'null'
          format: int32
        ephemeral_storage:
          type:
            - integer
            - 'null'
          format: int32
        memory:
          type:
            - integer
            - 'null'
          format: int32
      additionalProperties: false
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
      description: >-
        Timbal API key. Obtain your API key from the Timbal platform settings.
        See [Authentication](/api-reference/authentication) for more
        information.

````