Skip to main content
GET
/
protocols
/
{id}
/
forms
/
{formId}
/
questions
List questions of form
curl --request GET \
  --url http://localhost:8081/protocols/{id}/forms/{formId}/questions
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "protocolFormId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "questionText": "<string>",
    "responseType": "TEXT",
    "metadata": {},
    "required": true,
    "weight": 123,
    "position": 123,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "options": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "protocolQuestionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "optionText": "<string>",
        "score": 123,
        "position": 123,
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z"
      }
    ]
  }
]

Path Parameters

id
string<uuid>
required
formId
string<uuid>
required

Response

200 - application/json

List of questions with options

id
string<uuid>
protocolFormId
string<uuid>
questionText
string
responseType
enum<string>
Available options:
TEXT,
NUMBER,
DATE,
DATETIME,
BOOLEAN,
SELECT,
MULTIPLE_SELECT
metadata
object

Type-specific config (e.g. dateFormat, minValue/maxValue)

required
boolean
weight
number
position
integer
createdAt
string<date-time>
updatedAt
string<date-time>
options
object[]