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

# Take a test on from this PC, and get what to download and play



## OpenAPI

````yaml /api-reference/openapi.json post /tests/{id}/claim
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}/claim:
    post:
      tags:
        - Review
      summary: Take a test on from this PC, and get what to download and play
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                pc_name:
                  type: string
                  minLength: 1
                  maxLength: 80
              required:
                - pc_name
      responses:
        '200':
          description: How to run the test
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TestSettings'
        '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:
    TestSettings:
      type: object
      properties:
        id:
          type: string
          format: uuid
        project:
          type: string
        name:
          type: string
        version:
          type: string
        site:
          type: string
          description: The project's site on the game host
        entry:
          type: string
          description: The page to open, as a path in the release
        runs:
          type: integer
        minutes:
          type: integer
        checks:
          type: array
          items:
            type: string
          description: The game's own checks to read
        footage:
          type: object
          properties:
            every_seconds:
              type: number
            sheet_width:
              type: integer
            frame_width:
              type: integer
            quality:
              type: number
          required:
            - every_seconds
            - sheet_width
            - frame_width
            - quality
        files:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              sha256:
                type: string
              size:
                type: integer
              url:
                type: string
              expires_at:
                type: string
            required:
              - path
              - sha256
              - size
              - url
              - expires_at
      required:
        - id
        - project
        - name
        - version
        - site
        - entry
        - runs
        - minutes
        - checks
        - footage
        - files
    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.