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

# Rerun run

> Reruns a previous run. Pass `failedOnly: true` to rerun only failed/skipped/errored cases, or `projectTestCaseIds` to rerun a specific subset.



## OpenAPI

````yaml /api-reference/api.json post /v1/run/{shortId}
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: Release Checks
  - name: Projects
paths:
  /v1/run/{shortId}:
    post:
      tags:
        - Runs
      summary: Rerun run
      description: >-
        Reruns a previous run. Pass `failedOnly: true` to rerun only
        failed/skipped/errored cases, or `projectTestCaseIds` to rerun a
        specific subset.
      operationId: RerunRunOp
      parameters:
        - name: shortId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RerunRequest'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RerunResponse'
components:
  schemas:
    RerunRequest:
      type: object
      properties:
        failedOnly:
          type: boolean
          description: Rerun only failed/skipped/errored test cases from the original run.
        projectTestCaseIds:
          type: array
          items:
            type: string
          description: Rerun only these test cases, by project test case ID (UUID).
        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: >-
        Request body to rerun a prior run. Provide either `failedOnly` or
        `projectTestCaseIds`, not both (sending both returns 400). Send an empty
        object to rerun everything.
    RerunResponse:
      type: object
      required:
        - success
        - run
      properties:
        success:
          type: boolean
        run:
          $ref: '#/components/schemas/RerunRun'
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    RerunRun:
      type: object
      required:
        - id
        - shortId
        - url
        - testCount
      properties:
        id:
          type: string
        shortId:
          type: string
        url:
          type: string
        testCount:
          type: integer
          format: int32
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````