Skip to main content
POST
/
imports
/
preview
Preview import results
curl --request POST \
  --url https://app.azalt.co/api/v1/imports/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "definitionId": "<string>",
  "data": [
    {}
  ],
  "columnMapping": {},
  "context": {
    "year": 2050
  }
}
'
{
  "success": true,
  "result": {},
  "error": "<string>",
  "logs": [
    {
      "level": "<string>",
      "args": [
        "<string>"
      ]
    }
  ],
  "rowCount": 123,
  "groupKeys": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
definitionId
string
required
data
object[]
required
Required array length: 1 - 10000 elements
columnMapping
object
required
context
object

Response

Successful response

success
boolean
required
result
object
error
string
logs
object[]
rowCount
number
groupKeys
string[]