Create Field (Radio)
Create Field (Radio)
Validation rules:
- label: required|string|max:500
- field_type: required|in:text,number,checkbox,radio,dropdown,stoplight,picture,signature,smart_field
- options: required for checkbox/radio/dropdown
- options.smart_field_code: required for smart_field and must exist in form_smart_field_definitions
- is_required: sometimes|boolean
- sort_order: nullable|integer|min:0
- validation_rules: nullable|array
- default_value: nullable
- placeholder: nullable|string|max:255
Headers
{{tenant_key_name}}
Request
This endpoint expects a multipart form.
label
Required: string, max:500 - Field label
field_type
Required: enum(text|number|checkbox|radio|dropdown|stoplight|picture|signature|smart_field) - Field type
is_required
Optional: boolean - Whether field is mandatory
options[0][label]
Optional: string, max:255 - Option label (required in practice for choice fields)
options[0][value]
Optional: string, max:255 - Option value (required in practice for choice fields)
options[1][label]
Optional: string, max:255 - Option label (required in practice for choice fields)
options[1][value]
Optional: string, max:255 - Option value (required in practice for choice fields)
Response
Successful response

