An object containing the form field values. Keys should match the field IDs defined in the form schema.The structure varies based on the form, but generally:
Keys are field IDs (e.g., “name”, “email”, “rating”)
{ "error": "Form ID is required and cannot be empty"}
Returned when formId is missing or empty string.
Show 400 Bad Request - Invalid Data
Copy
Ask AI
{ "error": "Form data is required and must be an object"}
Returned when data is missing, null, or not an object.
Show 400 Bad Request - Invalid Form Fields
Copy
Ask AI
{ "error": "Form fields are not in the correct format"}
Returned when the form’s field schema is corrupted or invalid.
Show 400 Bad Request - Missing Required Field
Copy
Ask AI
{ "error": "Required field missing: Email Address"}
Returned when a required field is not present in the submitted data. The error message includes the field’s label to help users understand what’s missing.
Show 404 Not Found
Copy
Ask AI
{ "error": "Form not found"}
Returned when the specified form ID does not exist in the database.
Show 500 Internal Server Error
Copy
Ask AI
{ "error": "Failed to submit form"}
Returned when database operation fails or an unexpected error occurs.