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

# Update tryout application

> Update application status and/or internal notes.
`organizationId` is required in the JSON body (not as a query parameter) and must match the API key's organization.
Status changes emit domain events for Flows (`tryout.status_changed`, and `tryout.accepted` / `tryout.declined` when applicable).




## OpenAPI

````yaml /openapi.yaml patch /tryout-applications/{applicationId}
openapi: 3.1.0
info:
  title: SquadVault Public API
  version: 1.0.0
  description: >
    Organization-scoped Public API for teams, players, documents, tryout
    applications, and uploads.

    Base path is `/v1`. Authenticate with an organization API key in the
    `x-api-key` header.


    The key is scoped to one organization. List and create calls still require
    that organization ID

    in the path, query, or body, and it must match the key. Tryout get, update,
    and convert-to-player

    always require `organizationId` (query on GET, JSON body on PATCH/POST). Get
    team/player by ID

    uses `/teams/{organizationId}/{teamId}` and
    `/players/{organizationId}/{playerId}`.

    Team, player, and document update/delete resolve the organization from the
    resource ID.
  contact:
    name: SquadVault Support
    email: hello@squadvault.xyz
    url: https://squadvault.xyz
servers:
  - url: https://api.squadvault.xyz/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Teams
  - name: Players
  - name: Documents
  - name: Tryout Applications
  - name: Uploads
paths:
  /tryout-applications/{applicationId}:
    patch:
      tags:
        - Tryout Applications
      summary: Update tryout application
      description: >
        Update application status and/or internal notes.

        `organizationId` is required in the JSON body (not as a query parameter)
        and must match the API key's organization.

        Status changes emit domain events for Flows (`tryout.status_changed`,
        and `tryout.accepted` / `tryout.declined` when applicable).
      operationId: updateTryoutApplication
      parameters:
        - $ref: '#/components/parameters/ApplicationIdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTryoutApplicationRequest'
            example:
              organizationId: org_example
              status: reviewing
              internalNotes: Screening for academy tryouts
      responses:
        '200':
          description: Updated application
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TryoutApplication'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            Email or Discord user already used on another application for this
            form
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    ApplicationIdPath:
      name: applicationId
      in: path
      required: true
      schema:
        type: string
  schemas:
    UpdateTryoutApplicationRequest:
      type: object
      required:
        - organizationId
      properties:
        organizationId:
          type: string
          description: Organization ID. Must match the API key's organization.
        status:
          $ref: '#/components/schemas/TryoutApplicationStatus'
        internalNotes:
          type:
            - string
            - 'null'
      description: >
        `organizationId` is required. At least one of `status` or
        `internalNotes` should be provided.
    TryoutApplication:
      type: object
      required:
        - id
        - organizationId
        - status
        - name
        - email
        - formResponses
        - gamerTags
        - submittedAt
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        organizationId:
          type: string
        status:
          $ref: '#/components/schemas/TryoutApplicationStatus'
        name:
          type: string
        email:
          type: string
          format: email
        discordUserId:
          type:
            - string
            - 'null'
        discordUsername:
          type:
            - string
            - 'null'
        formResponses:
          type: object
          additionalProperties: true
        internalNotes:
          type:
            - string
            - 'null'
        convertedPlayerId:
          type:
            - string
            - 'null'
        convertedPlayer:
          oneOf:
            - type: object
              required:
                - id
                - name
              properties:
                id:
                  type: string
                name:
                  type: string
            - type: 'null'
        gamerTags:
          type: array
          items:
            $ref: '#/components/schemas/TryoutApplicationGamerTag'
        submittedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code
    TryoutApplicationStatus:
      type: string
      enum:
        - pending
        - reviewing
        - shortlisted
        - accepted
        - rejected
        - withdrawn
    TryoutApplicationGamerTag:
      type: object
      required:
        - id
        - game
        - gamerTag
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
        game:
          type: string
        gamerTag:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthorized:
              value:
                error: unauthorized
            invalidApiKey:
              value:
                error: invalidApiKey
    Forbidden:
      description: Valid credentials but missing permission or feature
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            forbidden:
              value:
                error: forbidden
            featureNotAvailable:
              value:
                error: featureNotAvailable
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Organization API key from Settings → API keys.

````