Import form element submissions data from external sources in bulk.
Import Features:
Data Validation:
TIMESTAMP support:
recordedAt (or timestamp) column; required for TIMESTAMP elements.year, and derives periodUnit from the UTC month.value with recordedAt deletes that exact entry.Multi-form import:
formName column (as produced by the export when includeFormName=true), rows are routed to their respective forms by name. In this case, formId in the request is ignored for those rows.formName is not present, the import behaves as single-form and uses the provided formId.Example request (CSV import, trimmed):
{
"formId": "form-123",
"format": "csv",
"fileData": "<base64-csv>"
}
Example CSV content:
siteName,year,key,periodUnit,value,recordedAt
plant-a,2024,water_usage,,120.5,2024-03-15T10:30:00Z
Example response (trimmed):
{
"success": true,
"message": "Imported",
"stats": { "created": 1, "updated": 0, "deleted": 0, "valuesDeleted": 0, "formSitesCreated": 0 }
}
This endpoint is essential for migrating data from legacy systems, bulk data entry operations, and automated data synchronization workflows.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.