Preview a Database import
Registers a durable import validation operation to inspect before committing. An optional caller-owned Private Storage upload session admits the operation before file transfer; validation starts automatically after upload finalization.
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"databaseName": "<string>",
"storageEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
databaseName: '<string>',
storageEntryId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.revoengine.com/api/v1/databases/imports/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/imports/preview"
payload = {
"databaseName": "<string>",
"storageEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Body
Format of the data. Gzip sources such as .csv.gz use the same format value as their decoded contents.
csv, tsv, ndjson, xlsx insert, upsert abort, skipRow Suppress import stage and review/terminal System messages and emails. Low-code defaults to true.
Register validation before a browser upload starts. Must target storageEntryId and belong to the caller. The durable operation waits for upload finalization before validating; repeated admission of the same upload reuses the operation.
Source column to target database and column; null skips a source column.
Response
curl --request POST \
--url https://api.revoengine.com/api/v1/databases/imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"databaseName": "<string>",
"storageEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
databaseName: '<string>',
storageEntryId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.revoengine.com/api/v1/databases/imports/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/imports/preview"
payload = {
"databaseName": "<string>",
"storageEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
