Imports API

Complete import of a CSV file

POST /api/workspaces/:workspace_id/csv/:csv_id/imports

Parameters

Name Description
workspace_id Workspace Id
csv_id CSV File Id
type Table type ( existingTable, newTable )
column_names List of columns names that the CSV will import into. The first column name passed will correspond to the first column of the CSV.
to_table Target table name
has_header Does the CSV file contain a header row? ( true, false )

Request

Headers

Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: _session_id=VWc0a3JFS1Z1eURqdFhoYk5FV01NNmpiS0hGVXdpNjBlb3hOY28vM3hHQ2Vzd3BrMHVDZC9TNlRkcTc3QXhqWmhNcjdDNnlqL250ZHczNG0zZjJWNS9qZXozaXIvQlNvUmQzOStsZC92KzVGWm4xLy9PRVF1RGpFdmRwNnRlZEtwYmtOM2J0Mmp1bFVBZ0ZFTXRWVWVjMEtIYXJ6ZHh1YWx2c1dQWXZ4VUtZS1ErakliWXNjajMvSUxQSXJkcXh2TmpYVTFqMG1WaWJVcEVHWEFVMitQYlhrQ1liVTFzMjJTemZTOElYemZmajN3MTNBUGVyNVdTQ1orMWd2cWFyaTZqVVQxRktwZU5IbHJjYmZFUlBPUWl0ZndPWmlmdkx0RGV3T3RkTzJvQ0xMNXc5cVV5OU9uZDVVT0lEQy9kQzFmQ2tVaFlrdEY3VHVJOG9pUDgvTWZJOVEycmcvUC9PSFhPREtoZzdSRkVsZjl5SWdldHdYcklXMm1iRjczNW83YTVhMVNxd3VLT2dRRlVFMmZNdi8rUFB5b0FHS3dZY0JZQm9JVXpBRmtFMD0tLWdSTDJIRm5SRWxJZ0s0TmRZb3Zzb1E9PQ%3D%3D--759fa41e78a1bca0437863cc5e0f68d84cdb73ea

Route

POST /api/workspaces/1000008/csv/1000001/imports

Body

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
ETag: W/"966416a8490f88b7d6232548a1a67c91"
Cache-Control: max-age=0, private, must-revalidate
Set-Cookie: _session_id=SDM0TEhTMDJZZGU3TDBTUE84VmVNWTBmUXVJZnBkY0s0c09aNFlNMDVFaXlyZ1ZZVTltZ3lMSGxHOHVRd29pT1Zja1l3c2h4M08rcktWdVB6NU9uR3doVEdsUVNGeEhvYjVHN0dWN213amU5azJvcmQrN3gvbkR1M2FaeStZdlJGSjNDZXBBSWRDZGZKT2Y5Ny9aNlpXWmtuMkdKTVREWmJUbVNNNTVoYnZIMlpRcGl3M0lMK1h2a0ZiZUFpa0w2d3hzejNieEN6NkQ4eXIwSzlXUzJPc25OM2N5amdIUnZBUElFVGdnNGVZNy9BWDRab1B6Rml1alowelZ1ZjhIUmRnTUt2SHN1Q1MxSk13aEZLNk1JaXFocGJpMjhuV0RzaFhEQTQ5UkJZWmZabm52bzlvWlp4eS9nK1lhVzMzVUdHMER3enBOSTEzY2k3amIrRVdOTHprUEM1MnhmNXpPaXhjVFA2NVpSd1l6ZXZ0aGQzUG45ZW5FUWtNVlN0d1FNWFUzam5laTFwZjVPaDlGbW5Cd1FHMjNsN3UzVWxDV0MwQUIxcllsNWZkd3l2alNhTjM4cGVXamdpWDNlS1pnWC0tb1FVWjBwbU5EMUV2ZmxpbEpVNUhBZz09--6fdd3327988e28036e4654db59fbad5c4d6455fa; path=/; HttpOnly
X-Request-Id: ae4e0b93-63cb-4be1-9209-dd3d724e63b6
X-Runtime: 0.166994
Content-Length: 15

Status

201 Created

Body