Skip to main content
POST
Add a question to a form template

Yetkilendirmeler

Authorization
string
header
gerekli

The access token received from the authorization server in the OAuth 2.0 flow.

Başlıklar

X-Tenant
number
gerekli

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Yol Parametreleri

id
integer
gerekli

The form template identifier

Gövde

application/json
label
string
gerekli

The label.

Maximum string length: 255
question_type
enum<string>
gerekli

The question type.

Mevcut seçenekler:
text,
textarea,
select,
radio,
checkbox,
number,
date,
boolean
required
boolean
gerekli

Whether the field is required.

order
integer
gerekli

The display order.

Gerekli aralık: x >= 0
helper_text
string | null

Helper text shown to the user.

options
object[]

The available options.

visibility_rules
object[]

Visibility rule definitions.

Yanıt

success
string
gerekli
data
FormQuestionResource · object
gerekli