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

> Rename an application, change its color, or change how long saved login sessions stay valid, as Settings → Applications & Envs does.

Only the fields you pass change.



## OpenAPI

````yaml /api-reference/api.json patch /v1/applications/{applicationShortId}
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: Scenarios
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/applications/{applicationShortId}:
    patch:
      tags:
        - Applications
      summary: Update application
      description: >-
        Rename an application, change its color, or change how long saved login
        sessions stay valid, as Settings → Applications & Envs does.


        Only the fields you pass change.
      operationId: UpdateApplication
      parameters:
        - name: applicationShortId
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ApplicationShortId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateApplicationRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateApplicationResponse'
components:
  schemas:
    ApplicationShortId:
      type: string
      pattern: ^app(-.+_.+|_.+)$
    UpdateApplicationRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: New application name, unique within the project.
        color:
          type: string
          pattern: ^#[0-9a-fA-F]{6}$
          description: >-
            Hex color that identifies the application in the dashboard, e.g.
            `#3B82F6`.
        outputStateValiditySeconds:
          type: integer
          format: int32
          minimum: 300
          maximum: 604800
          description: >-
            Session state lifetime in seconds: how long cookies and storage
            saved by a login test stay valid for reuse in dependent tests. Lower
            it if your application has short-lived session tokens. 300 (5
            minutes) to 604800 (7 days); the default is 21600 (6 hours).
        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.
      description: >-
        Fields to change on an application. Omitted fields keep their current
        value; pass at least one.
    UpdateApplicationResponse:
      type: object
      required:
        - application
      properties:
        application:
          $ref: '#/components/schemas/UpdatedApplication'
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    UpdatedApplication:
      type: object
      required:
        - shortId
        - name
        - kind
        - color
        - outputStateValiditySeconds
      properties:
        shortId:
          allOf:
            - $ref: '#/components/schemas/ApplicationShortId'
          description: >-
            Prefixed application short ID. The name part changes after a rename;
            the previous short ID keeps working.
        name:
          type: string
        kind:
          type: string
        color:
          type: string
          nullable: true
        outputStateValiditySeconds:
          type: integer
          format: int32
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

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