How do I pass file name when importing CSV file to existing dataset?
I would like to leverage DOMO API to update an existing dataset, which is originally created by CSV upload method. I read through the API documentation, but couldn't find any way to pass a file name. Please help. My expectation:
-- DataSet created, with an ID already, of course
-- Someone will update the source CSV file
-- A script with DOMO API to upload the CSV file to the existing dataset, using REPLACE method
Thanks,
Hua
Best Answers
-
Hua,
My understanding is the the DataSet API can only load data into a dataset that is created through the dataset API. You'll need to use the method to create a new dataset and then use the newly created dataset for your future data replace calls.
The import functionality of the DataSet API expects the csv data to be in the body of the request, so there will be no filename parameter passed to the API.
I hope that helps!
0 -
Hua,
The DataSet API will work well for that, yes. However, if you're going to be pushing up changes frequently, or if you end up having larger amounts of data to push up, I'd recommend looking into the Streams API instead. It allows you to split a file into smaller chucks and sent them up in parallel, which can greatly reduce transfer and processing time.
0
Answers
-
Hua,
My understanding is the the DataSet API can only load data into a dataset that is created through the dataset API. You'll need to use the method to create a new dataset and then use the newly created dataset for your future data replace calls.
The import functionality of the DataSet API expects the csv data to be in the body of the request, so there will be no filename parameter passed to the API.
I hope that helps!
0 -
Hua,
The DataSet API will work well for that, yes. However, if you're going to be pushing up changes frequently, or if you end up having larger amounts of data to push up, I'd recommend looking into the Streams API instead. It allows you to split a file into smaller chucks and sent them up in parallel, which can greatly reduce transfer and processing time.
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 293 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 607 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 707 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive