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

# Update room settings

> Update room settings by room code



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi patch /api/v1/rooms/{roomCode}/settings
openapi: 3.1.0
info:
  title: IntelliQ API
  description: API for IntelliQ
  version: 2.0.0
servers:
  - url: http://localhost:8787
    description: Local server
  - url: https://app.intelliq.dev
    description: Production server
security: []
paths:
  /api/v1/rooms/{roomCode}/settings:
    patch:
      tags:
        - Rooms
      summary: Update room settings
      description: Update room settings by room code
      operationId: patchApiV1RoomsByRoomCodeSettings
      parameters:
        - in: path
          name: roomCode
          schema:
            type: string
            minLength: 4
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - numQuestions
                    - timeLimit
                    - topic
                    - showAnswers
                    - maxPlayers
                    - language
                    - endedAt
                value:
                  anyOf:
                    - type: number
                    - type: string
                    - type: boolean
              required:
                - type
                - value
      responses:
        '200':
          description: Room settings updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    minLength: 4
                  id:
                    type: string
                  hostId:
                    type: string
                  maxPlayers:
                    type: number
                  numQuestions:
                    type: number
                  createdAt:
                    type: string
                  endedAt:
                    type:
                      - string
                      - 'null'
                  timeLimit:
                    type: number
                required:
                  - code
                  - id
                  - hostId
                  - maxPlayers
                  - numQuestions
                  - createdAt
                  - endedAt
                  - timeLimit
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````