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

# Update tournament

> Update tournament configuration (only before tournament starts)



## OpenAPI

````yaml api-reference/openapi.json put /api/tournaments/{tournamentId}
openapi: 3.1.0
info:
  title: Tournament Platform API
  description: >-
    Comprehensive API for managing real-time multiplayer tournaments with Game
    Platform integration. Includes both external Casino Integration APIs and
    internal Game Platform APIs.
  version: 1.0.0
  license:
    name: MIT
  contact:
    name: Tournament Platform Support
    url: https://ts.playservices.tech/
    email: support@playservices.tech
servers:
  - url: https://ts.playservices.tech/api
    description: Production server
security:
  - OperatorAPIKey: []
  - InternalAPIKey: []
paths:
  /api/tournaments/{tournamentId}:
    put:
      tags:
        - Casino Integration - Tournaments
      summary: Update tournament
      description: Update tournament configuration (only before tournament starts)
      parameters:
        - $ref: '#/components/parameters/TournamentId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTournamentRequest'
      responses:
        '200':
          description: Tournament updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TournamentUpdateResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
      security:
        - OperatorAPIKey: []
components:
  parameters:
    TournamentId:
      name: tournamentId
      in: path
      required: true
      description: Unique tournament identifier
      schema:
        type: string
        example: '12345'
  schemas:
    UpdateTournamentRequest:
      type: object
      properties:
        name:
          type: string
        scheduled_start:
          type: string
          format: date-time
        max_players:
          type: integer
        min_players:
          type: integer
    TournamentUpdateResponse:
      type: object
      properties:
        tournament:
          $ref: '#/components/schemas/Tournament'
    Tournament:
      type: object
      properties:
        tournamentId:
          type: string
          example: '12345'
        name:
          type: string
          example: Daily Championship
        gameSlug:
          type: string
          example: crash-classic
        status:
          type: string
          enum:
            - scheduled
            - in_progress
            - completed
            - cancelled
        scheduledStart:
          type: string
          format: date-time
        actualStartTime:
          type: string
          format: date-time
        completedAt:
          type: string
          format: date-time
        maxPlayers:
          type: integer
          example: 100
        currentPlayers:
          type: integer
          example: 87
        entryFee:
          type: number
          example: 10
        currency:
          type: string
          example: USD
        prizePool:
          $ref: '#/components/schemas/PrizePool'
        gameConfig:
          type: object
        createdAt:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
    PrizePool:
      type: object
      properties:
        totalAmount:
          type: number
          example: 870
        currency:
          type: string
          example: USD
        guaranteedPrize:
          type: number
          example: 500
        distribution:
          type: object
          additionalProperties:
            type: number
  responses:
    BadRequest:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Request conflicts with current state
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    OperatorAPIKey:
      type: http
      scheme: bearer
      description: >-
        Operator API key with role-based permissions (tournaments.read,
        players.write, etc.)
    InternalAPIKey:
      type: apiKey
      in: header
      name: X-Internal-Api-Key
      description: Internal API key for Game Platform integration

````