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

# Submit a quiz

> This route is called once by the host user. It creates one quiz and one set of questions for the entire lobby.



## OpenAPI

````yaml https://api.arcsolutionsteam.workers.dev/openapi post /api/v1/quiz-submissions/multiplayer/{roomId}/quiz
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/quiz-submissions/multiplayer/{roomId}/quiz:
    post:
      tags:
        - Quiz Submissions Multiplayer
      summary: Submit a quiz
      description: >-
        This route is called once by the host user. It creates one quiz and one
        set of questions for the entire lobby.
      operationId: postApiV1Quiz-submissionsMultiplayerByRoomIdQuiz
      parameters:
        - in: path
          name: roomId
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                quizTitle:
                  type: string
                quizTopics:
                  type: array
                  items:
                    type: string
                language:
                  type: string
                  enum:
                    - en
                    - de
                    - fr
                    - es
                    - it
                    - ro
                    - sr
                    - tl
                    - pl
                questions:
                  type: array
                  items:
                    type: object
                    properties:
                      questionTitle:
                        type: string
                      text:
                        type: string
                      options:
                        type: array
                        items:
                          type: string
                      correctAnswer:
                        type: string
                    required:
                      - questionTitle
                      - text
                      - options
                      - correctAnswer
              required:
                - quizTitle
                - quizTopics
                - language
                - questions
      responses:
        '201':
          description: Quiz submitted successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  quizId:
                    type: string
                    format: uuid
                  questions:
                    type: array
                    items:
                      type: object
                      properties:
                        questionTitle:
                          type: string
                        id:
                          type: string
                          format: uuid
                        text:
                          type: string
                        options:
                          type: array
                          items:
                            type: string
                        correctAnswer:
                          type: string
                      required:
                        - questionTitle
                        - id
                        - text
                        - options
                        - correctAnswer
                required:
                  - quizId
                  - questions

````