Skip to main content
POST
/
form-element-submissions
/
import
/
preview
Preview 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
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
formId
string
required
fileData
string
required
format
enum<string>
default:csv
Available options:
csv,
xlsx

Response

Successful response

totalRows
number
required
years
object[]
required
newFormSites
object[]
required