Datasets
Preview uploaded table schemas
Upload all files first. Preview does not close intake or modify dataset contents.
POST
/
api
/
v1
/
dataset-uploads
/
{uploadId}
/
preview
cURL
curl --request POST 'https://dashboard.sequentum.com/api/v1/dataset-uploads/123/preview' \
--header 'Authorization: ApiKey {key}'const response = await fetch('https://dashboard.sequentum.com/api/v1/dataset-uploads/123/preview', {
method: 'POST',
headers: { Authorization: 'ApiKey ' + process.env.SEQUENTUM_API_KEY }
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());import os
import requests
response = requests.post(
'https://dashboard.sequentum.com/api/v1/dataset-uploads/123/preview',
headers={'Authorization': 'ApiKey ' + os.environ['SEQUENTUM_API_KEY']},
timeout=60,
)
response.raise_for_status()
print(response.json()){
"uploadId": 123,
"datasetId": 123,
"sourceId": "<string>",
"sequence": 123,
"parallelSet": 123,
"extractedTime": "2023-11-07T05:31:56Z",
"categoryId": 123,
"categoryName": "<string>",
"deadline": "2023-11-07T05:31:56Z",
"status": "<string>",
"error": "<string>",
"files": [
{
"fileId": 123,
"table": "<string>",
"kind": "<string>",
"uploadUrl": "<string>",
"uploaded": true
}
],
"uploadToken": "<string>",
"step": 123,
"totalSteps": 123,
"previewSchema": {
"systemColumnsVersion": 0,
"hasCollectionTable": false,
"hasFileTable": true,
"tables": [
{
"id": "<string>",
"name": "<string>",
"displayName": "<string>",
"parentTableId": "<string>",
"isPrimary": true,
"hasParentId": true,
"columns": [
{
"isFileReference": true,
"name": "<string>",
"sourceName": "<string>",
"type": "<string>",
"contentType": 0,
"isEncrypted": true
}
]
}
],
"warnings": [
"<string>"
]
},
"previewMappings": {
"tables": [
{
"sourceTableId": "<string>",
"targetTable": "<string>",
"columns": {},
"selectSql": "<string>"
}
],
"stagingRetentionDays": 123
},
"previewPending": true
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Response
Accepted