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

# Updates an existing question with new information.



## OpenAPI

````yaml https://raw.githubusercontent.com/FooBarBizarre/docs/refs/heads/main/api-reference/openapi.json put /questions/{questionId}
openapi: 3.0.1
info:
  title: Maia Backend API
  version: v1
servers: []
security: []
paths:
  /questions/{questionId}:
    put:
      tags:
        - Questionnaire
      summary: Updates an existing question with new information.
      parameters:
        - name: questionId
          in: path
          description: The unique identifier of the question to update.
          required: true
          schema:
            type: integer
            format: int32
      requestBody:
        description: >-
          The updated question data including prompt, position, type, and
          metadata.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateQuestion'
          text/json:
            schema:
              $ref: '#/components/schemas/UpdateQuestion'
          application/*+json:
            schema:
              $ref: '#/components/schemas/UpdateQuestion'
      responses:
        '200':
          description: OK
        '204':
          description: Question updated successfully.
components:
  schemas:
    UpdateQuestion:
      type: object
      properties:
        position:
          type: integer
          format: int32
        prompt:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
        metadata:
          type: string
          nullable: true
      additionalProperties: false

````