---
title: "Create a new question (with optional inline options)"
method: POST
path: "/api/admin/questionnaire/questions"
tags: ["Admin"]
---

# Create a new question (with optional inline options)

`POST /api/admin/questionnaire/questions`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/admin/questionnaire/questions`
- Auth: HTTP bearer

## Request body

- CreateQuestionDto
  - `surveyId` number: Survey this question belongs to — defaults to the intake survey if omitted
  - `questionText` string, required
  - `questionKey` string, required
  - `answerType` string, required
  - `minItems` number: Minimum items required — only meaningful for answerType "repeatable_list"
  - `allowsCustomInput` boolean
  - `section` number
  - `displayOrder` number
  - `isRequired` boolean
  - `conditionalOnQuestionId` number: ID of question this depends on
  - `conditionalOnOptionIds` string[]: Option IDs that make this question visible
  - `options` CreateOptionDto[]: Initial options to create with the question
    - `optionText` string, required
    - `optionValue` string
    - `displayOrder` number

## Response `201`

## Changes

- **2026-09-12** `0d5ef02a4fbe`: 2 info
  - added the new optional request property `minItems`
  - added the new optional request property `surveyId`

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/admin/questionnaire/questions/post.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
