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

# Update config

> Rename a config, change its description or application scope, or replace its values (for example a rotated password). Tests that use the config pick up the change on their next run.



## OpenAPI

````yaml /api-reference/api.json patch /v1/configs/{configShortId}
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/configs/{configShortId}:
    patch:
      tags:
        - Configs
      summary: Update config
      description: >-
        Rename a config, change its description or application scope, or replace
        its values (for example a rotated password). Tests that use the config
        pick up the change on their next run.
      operationId: UpdateConfig
      parameters:
        - name: configShortId
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ConfigShortId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateConfigRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateConfigResponse'
components:
  schemas:
    ConfigShortId:
      type: string
      pattern: ^cfg(-.+_.+|_.+)$
    UpdateConfigRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 2
          maxLength: 100
        description:
          type: string
          nullable: true
          maxLength: 2000
          description: Pass null to clear it.
        data:
          type: object
          additionalProperties: {}
          description: >-
            Replacement values, in the same shape as `create_config` for the
            config's type. Replaces all values; the generated inbox email of
            EMAIL_PASSWORD and FIXED_EMAIL configs is kept. ONE_TIME_USE_ITEMS
            pools are edited in the dashboard.
        applicationShortId:
          type: string
          allOf:
            - $ref: '#/components/schemas/ApplicationShortId'
          nullable: true
          description: >-
            Application to scope the config to. Pass null to make it available
            to every application.
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    UpdateConfigResponse:
      type: object
      required:
        - success
        - config
      properties:
        success:
          type: boolean
        config:
          $ref: '#/components/schemas/ProjectConfig'
    ApplicationShortId:
      type: string
      pattern: ^app(-.+_.+|_.+)$
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    ProjectConfig:
      type: object
      required:
        - shortId
        - name
        - description
        - type
        - summary
        - applicationShortId
        - readOnly
        - createdAt
        - updatedAt
      properties:
        shortId:
          allOf:
            - $ref: '#/components/schemas/ConfigShortId'
          description: >-
            Config short id. Pass it in `configShortIds` when creating a test
            case so the agent can use this data.
        name:
          type: string
        description:
          type: string
          nullable: true
          description: >-
            When to use this config, e.g. which user role it represents. The
            assistant and test agent read this to pick the right config.
        type:
          type: string
          description: Config type, e.g. `USERNAME_PASSWORD` or `CUSTOM_FIELDS`.
        summary:
          type: string
          nullable: true
          description: >-
            Masked preview of the values, as shown in the dashboard. Passwords,
            keys and header values are never returned.
        applicationShortId:
          type: string
          allOf:
            - $ref: '#/components/schemas/ApplicationShortId'
          nullable: true
          description: >-
            Application the config is scoped to, or null when it is available to
            every application.
        readOnly:
          type: boolean
          description: >-
            System configs provided by QA.tech (such as the project inbox) are
            read-only.
        createdAt:
          type: string
        updatedAt:
          type: string
          nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

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