Files
Concepts
The File API enables uploading and transforming data for subsequent visualization by the visualization dataset API. It is meant for use cases like reusing the same file across different visualizations, such as for faster interactive data cleaning. Multiple file formats may be uploaded.
The flow is roughly:
- POST a file, with potential settings
- POST data upload for the file, triggering a parsing attempt
- Potentially iterate over sending PATCH calls for the file or POSTs for different data
- Create a visualization that uses the uploaded file(s)
List Files
| Route | Method | Headers | Parameters | Return |
|---|---|---|---|---|
api/v2/files/ |
GET |
Content-Type: application/json Authorization: Bearer YOUR_JWT_TOKEN |
|
|
Input:
|
||||
Output:
|
||||
Create file
| Route | Method | Headers | Parameters | Return |
|---|---|---|---|---|
api/v2/files/ |
POST |
Content-Type: application/json Authorization: Bearer YOUR_JWT_TOKEN |
|
|
Input:
|
||||
Output:
|
||||
Upload file data
| Route | Method | Headers | Parameters | Return |
|---|---|---|---|---|
api/v2/upload/files/<file_id> |
POST | Authorization: Bearer YOUR_JWT_TOKEN | file data |
|
Input:
|
||||
Output:
|
||||
Delete file
| Route | Method | Headers | Parameters | Return |
|---|---|---|---|---|
api/v2/files/<file_id> |
DELETE |
Content-Type: application/json Authorization: Bearer YOUR_JWT_TOKEN |
HTTP code 204 | |
Input:
|
||||
Output:
|
||||