---
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

---

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