Skip to main content
POST
Create question

Path Parameters

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

Body

application/json
questionText
string
required
responseType
enum<string>
Available options:
TEXT,
NUMBER,
DATE,
DATETIME,
BOOLEAN,
SELECT,
MULTIPLE_SELECT
metadata
object
required
boolean
weight
number
default:1
position
integer
default:0

Response

201 - application/json

Created question

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