---
title: "Queue an export of a questionnaire’s answer requests"
method: POST
path: "/api/questionnaires/{id}/export"
tags: ["Questionnaire"]
---

# Queue an export of a questionnaire’s answer requests

`POST /api/questionnaires/{id}/export`

Queues an Excel export and answers immediately — the workbook is built asynchronously, so a 204 means "accepted", not "ready". With `allRequests` set, every answer request still on the questionnaire is exported and `requestIds` is ignored; otherwise `requestIds` must be non-empty. The questionnaire must have been created by the calling company. Request ids are not validated against the questionnaire.

## Path parameters

- `id` string, required

## Request body

- object
  - `allRequests` boolean
  - `requestIds` string[]

## Response `204`

No content

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response

## Changes

> 21 revisions in range; 1 not diffed.

- **2026-08-13** `8b48cb95655b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/questionnaires/:id/export/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/1df37791a1bb/schema)
