Authorization: Bearer ********************{
"form_id": 1,
"groups": [
{
"name": "test",
"fields": [
{
"label": "Reason for Leaving",
"type": "checkbox",
"is_required": true,
"order": 1,
"options": [
"Better career opportunity (promotion & role expansion)",
"Salary/Compensation",
"Work-life balance",
"Relationship with supervisor/colleagues",
"Relocation / Family reason"
]
},
{
"label": "Compensation & Benefits",
"type": "range",
"options": {
"min": 1,
"max": 5
},
"is_required": true,
"order": 2,
"metadata": {
"is_note": true
}
},
{
"label": "Work Environment",
"type": "range",
"options": {
"min": 1,
"max": 5
},
"is_required": true,
"order": 3,
"metadata": {
"is_note": true
}
},
{
"label": "Relationship with Supervisor",
"type": "range",
"options": {
"min": 1,
"max": 5
},
"is_required": true,
"order": 4,
"metadata": {
"is_note": true
}
},
{
"label": "Carrer Development",
"type": "range",
"options": {
"min": 1,
"max": 5
},
"is_required": true,
"order": 5,
"metadata": {
"is_note": true
}
},
{
"label": "Company Strengs",
"type": "textarea",
"is_required": true,
"order": 6
},
{
"label": "Company Strengs",
"type": "textarea",
"is_required": true,
"order": 7
},
{
"label": "Suggestion for Improvement",
"type": "textarea",
"is_required": true,
"order": 8
},
{
"label": "Final Comments",
"type": "textarea",
"is_required": true,
"order": 9
},
{
"label": "Contoh Text Biasa",
"type": "text",
"is_required": true,
"order": 10
},
{
"label": "Contoh Select Option (cuman single aja gk multiple)",
"type": "select",
"is_required": true,
"options": [
"A. Benar",
"B. Salah",
"C. Salah Tapi Benar"
],
"order": 11
},
{
"label": "Contoh Radio Button (cuman single aja gk multiple)",
"type": "radio",
"is_required": true,
"options": [
"Visa",
"Master Card"
],
"order": 12
}
]
}
]
}{
"status": "success",
"message": "Fields saved successfully",
"data": [
{
"id": 1,
"name": "test",
"form_id": 1,
"order": 0,
"metadata": null,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"fields": [
{
"id": 53,
"form_id": 1,
"label": "Reason for Leaving",
"type": "checkbox",
"options": [
"Better career opportunity (promotion & role expansion)",
"Salary/Compensation",
"Work-life balance",
"Relationship with supervisor/colleagues",
"Relocation / Family reason"
],
"is_required": true,
"order": 1,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 1
},
{
"id": 54,
"form_id": 1,
"label": "Compensation & Benefits",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 2,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 1
},
{
"id": 55,
"form_id": 1,
"label": "Work Environment",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 3,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 1
},
{
"id": 56,
"form_id": 1,
"label": "Relationship with Supervisor",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 4,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 1
},
{
"id": 57,
"form_id": 1,
"label": "Carrer Development",
"type": "range",
"options": {
"max": 5,
"min": 1
},
"is_required": true,
"order": 5,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": {
"is_note": true
},
"field_group_id": 1
},
{
"id": 58,
"form_id": 1,
"label": "Company Strengs",
"type": "textarea",
"options": null,
"is_required": true,
"order": 6,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 1
},
{
"id": 59,
"form_id": 1,
"label": "Company Strengs",
"type": "textarea",
"options": null,
"is_required": true,
"order": 7,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 1
},
{
"id": 60,
"form_id": 1,
"label": "Suggestion for Improvement",
"type": "textarea",
"options": null,
"is_required": true,
"order": 8,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 1
},
{
"id": 61,
"form_id": 1,
"label": "Final Comments",
"type": "textarea",
"options": null,
"is_required": true,
"order": 9,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 1
},
{
"id": 62,
"form_id": 1,
"label": "Contoh Text Biasa",
"type": "text",
"options": null,
"is_required": true,
"order": 10,
"created_at": "2025-11-20T23:47:08.000000Z",
"updated_at": "2025-11-20T23:47:08.000000Z",
"deleted_at": null,
"description": null,
"metadata": null,
"field_group_id": 1
}
]
}
]
}