---
title: "Append AI generated questions to an existing quiz."
method: POST
path: "/v1/quizzes/{quiz_id}/questions/ai"
tags: ["AI"]
---

# Append AI generated questions to an existing quiz.

`POST /v1/quizzes/{quiz_id}/questions/ai`

## Request

- Base URL: `https://127.0.0.1/api`
- URL: `https://127.0.0.1/api/v1/quizzes/{quiz_id}/questions/ai`
- Auth: none declared

## Path parameters

- `quiz_id` string, required

## Request body

- ReqAppendAIQuestions
  - `duration_in_seconds` integer
  - `points` integer
  - `questions` AIQuestion[]
    - `correct_answer` integer
    - `options` string[]
    - `options_media` string
    - `question` string
    - `question_media` string
    - `question_type` string
    - `resource` string

## Response `201`

- object
  - `data` ResAppendAIQuestions
    - `added` integer
    - `question_ids` string[]
  - `status` string

## Other responses

- `400`: Fail due to resource not exists
- `401`: Server understand request but refuse to authorize it
- `500`: Unexpected error occurred

## Changes

- **2026-09-16** `15ae2821b57b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api/changes/v1/quizzes/:quiz_id/questions/ai/post.md)

---

[API](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api.md) - [All operations](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api/llms.txt) - [OpenAPI document](https://skmtc.dev/improwised/apis/improwised-technologies-pvt-ltd-jovvix-api/revisions/15ae2821b57b?raw)
