---
title: "Answer a questionnaire question"
method: POST
path: "/questionnaires/answer_question_public"
tags: ["Questionnaires"]
---

# Answer a questionnaire question

`POST /questionnaires/answer_question_public`

## Request

- Base URL: `https://api.soraban.com`
- URL: `https://api.soraban.com/questionnaires/answer_question_public`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/soraban/apis/soraban-private-api/docs/questionnaires/answer_question_public/post.ts> (a function with typed inputs; its response is checked against the schema)

Requires a key with the `write_enhanced` scope.

Answers a single question on a sent questionnaire. Upload questions cannot be answered this way — send the document through Soraban instead.

## Request body

- object
  - `id` integer, required: The question's id, from `GET /questionnaires/{id}`.
  - `answer` string, required: The answer value. Format depends on the question type.
  - `answer_by` string: Who the answer should be attributed to.

## Response `200`

The updated question.

- QuestionnaireQuestion
  - `id` integer
  - `text` string, nullable
  - `answer` string, nullable
  - `formatted_answer` string, nullable
  - `question_type` string, nullable
  - `order` integer, nullable
  - `options` string[], nullable
  - `completed` boolean, nullable
  - `triggered` boolean, nullable
  - `optional` boolean, nullable
  - `submitted` boolean, nullable
  - `answer_by` string, nullable
  - `section_id` integer, nullable
  - `set_id` integer, nullable
  - `set_type` string, nullable
  - `created_at` string, date-time
  - `filtered_questionnaire_comments` object[]

## Other responses

- `403`: The key lacks the `write_enhanced` scope, or the record does not belong to your firm.
- `404`: No such record for this firm.
- `422`: The request was understood but rejected. See `error` for the reason.

## Changes

- **2026-11-03** `1c230fa547ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/soraban/apis/soraban-private-api/changes/questionnaires/answer_question_public/post.md)

---

[API](https://skmtc.dev/soraban/apis/soraban-private-api.md) - [All operations](https://skmtc.dev/soraban/apis/soraban-private-api/llms.txt) - [OpenAPI document](https://skmtc.dev/soraban/apis/soraban-private-api/revisions/1c230fa547ad?raw)
