curl --request POST \
--url https://app.azalt.co/api/v1/form-element-submissions/import/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formId": "<string>",
"fileData": "<string>",
"format": "csv"
}
'{
"totalRows": 123,
"years": [
{
"year": 123,
"rowCount": 123
}
],
"newFormSites": [
{
"formId": "<string>",
"formName": "<string>",
"siteId": "<string>",
"siteName": "<string>",
"year": 123,
"rowCount": 123
}
]
}Preview the years, row counts, and new form-site records that would be affected by a form element submissions import.
curl --request POST \
--url https://app.azalt.co/api/v1/form-element-submissions/import/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formId": "<string>",
"fileData": "<string>",
"format": "csv"
}
'{
"totalRows": 123,
"years": [
{
"year": 123,
"rowCount": 123
}
],
"newFormSites": [
{
"formId": "<string>",
"formName": "<string>",
"siteId": "<string>",
"siteName": "<string>",
"year": 123,
"rowCount": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.