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

# Report one run: its checks, the game's own checks and its frames



## OpenAPI

````yaml /api-reference/openapi.json post /tests/{id}/runs
openapi: 3.1.0
info:
  title: Patch API
  version: 1.0.0
  description: >-
    The public API behind patch.gg, the desktop app and pch. Changes within v1
    are additive only. Errors are { error: { code, message, details } }; branch
    on code.
servers:
  - url: https://patch.gg/api/v1
security: []
paths:
  /tests/{id}/runs:
    post:
      tags:
        - Review
      summary: 'Report one run: its checks, the game''s own checks and its frames'
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                run:
                  type: integer
                  minimum: 1
                seconds:
                  type: number
                  minimum: 0
                checks:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        enum:
                          - scanned
                          - loaded
                          - no_errors
                          - picture
                          - responding
                          - no_outside_requests
                          - ran_to_end
                          - self_checks
                      result:
                        type: string
                        enum:
                          - pass
                          - fail
                          - cant_check
                      detail:
                        type: string
                        maxLength: 1000
                    required:
                      - id
                      - result
                  minItems: 1
                  maxItems: 20
                self_checks:
                  type: object
                  properties:
                    passed:
                      type: array
                      items:
                        type: string
                    failed:
                      type: array
                      items:
                        type: object
                        properties:
                          name:
                            type: string
                          why:
                            type: string
                        required:
                          - name
                    missing:
                      type: array
                      items:
                        type: string
                  required:
                    - passed
                    - failed
                    - missing
                frame_times:
                  type: array
                  items:
                    type: number
                    minimum: 0
                  maxItems: 2000
                footage_error:
                  type: string
                  maxLength: 500
              required:
                - run
                - seconds
                - checks
                - frame_times
      responses:
        '204':
          description: Recorded
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Not signed in
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Not allowed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearer: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: version_exists
            message:
              type: string
            details: {}
          required:
            - code
            - message
      required:
        - error
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key (pch_...) or the token from pch login.

````

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