---
title: "Create a new survey (e.g. a future H20-03 group-wide survey)"
method: POST
path: "/api/admin/questionnaire/surveys"
tags: ["Admin"]
---

# Create a new survey (e.g. a future H20-03 group-wide survey)

`POST /api/admin/questionnaire/surveys`

## 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/surveys`
- Auth: HTTP bearer

## Request body

- CreateSurveyDto
  - `key` string, required: Stable key — question.survey_id resolution and app clients reference this, not the id
  - `name` string, required
  - `isActive` boolean: Defaults to true — an inactive survey's questions become unfetchable immediately

## Response `201`

## Changes

- **2026-09-12** `0d5ef02a4fbe`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/admin/questionnaire/surveys/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)
