---
title: "Save or update an answer to a question"
method: POST
path: "/api/questionnaire/answer"
tags: ["Questionnaire"]
---

# Save or update an answer to a question

`POST /api/questionnaire/answer`

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

## Request body

- SaveAnswerDto
  - `questionId` number, required: ID of the question being answered
  - `selectedOptionId` object: Single selected option ID (for single_choice questions)
  - `selectedOptionIds` object: Array of selected option IDs (for multi_choice questions)
  - `customAnswer` object: Custom text answer (for free_text, numeric, date, or "Other" specify)
  - `customAnswerList` object: Array answer (for repeatable_list questions)

## Response `200`

Answer saved or updated (upsert)

## Changes

- **2026-09-12** `0d5ef02a4fbe`: 1 info
  - added the new optional request property `customAnswerList`

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