# Questionnaire Responses

> Submit and manage questionnaire responses via the Jump EHR API. Create, retrieve, and update form submissions.

Source: https://docs.usejump.co.uk/api-reference/questionnaire-responses

The Questionnaire Responses API allows you to submit form data against questionnaire templates, and retrieve or update existing responses.

  <Callout type="info">
    API-created responses have `submitted_by_patient: false` automatically. The `questionnaire_id` must match a template visible to your organisation.
  </Callout>
## List questionnaire responses

`GET /questionnaire-responses`

API-key scope: `read_questionnaires`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Maximum number of records to return (1–100, default 20) |
| `offset` | query | integer | no | Number of records to skip (default 0) |
| `patient_id` | query | string (uuid) | no |  |
| `questionnaire_id` | query | string (uuid) | no |  |
| `episode_id` | query | string (uuid) | no |  |
| `appointment_id` | query | string (uuid) | no |  |
| `is_pre_booking` | query | string | no |  |

### Responses

- `200` Paginated list

## Create a questionnaire response

`POST /questionnaire-responses`

API-key scope: `write_questionnaires`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | string (uuid) | no | Optional UUID for request deduplication. Same key + same body returns the cached response. Same key + different body returns 409 CONFLICT. Keys are scoped to your organisation and endpoint, and expire after 24 hours. |

### Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `questionnaire_id` | string (uuid) | yes |  |
| `responses` | object | yes | Must be a JSON object, not array |
| `patient_id` | string (uuid) | no |  |
| `appointment_id` | string (uuid) | no |  |
| `episode_id` | string (uuid) | no |  |

### Responses

- `201` Created
- `409` Idempotency key reused with different request body
- `422` Request body failed validation

## Retrieve a questionnaire response

`GET /questionnaire-responses/{id}`

API-key scope: `read_questionnaires`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Responses

- `200` Response detail
- `404` Resource not found (or belongs to a different organisation)

## Update a questionnaire response

`PATCH /questionnaire-responses/{id}`

API-key scope: `write_questionnaires`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string (uuid) | yes |  |

### Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `responses` | object | no |  |
| `patient_id` | string (uuid) | no |  |
| `appointment_id` | string (uuid) | no |  |
| `episode_id` | string (uuid) | no |  |

### Responses

- `200` Updated
- `404` Resource not found (or belongs to a different organisation)
