Upload CSV files automation

Hi,
How can I upload CSV file to metabase automatically? via api?
I need to build a dashboard report showing some information and the history..

Is it possible to upload a CSV via api? I need to keep new uploaded files and old as history.
Regards.

POST /api/table/{id}/replace-csv

file:
filename: string
tempfile: null

POST /api/table/{id}/append-csv

file:
filename: string
tempfile: null

thank you so much.. I was blind I saw the documentation and didn't see this endpoint example..
Do you know if it's possible to automatically sync the question and dashboard based on the upload file ?

If you have a dashboard you could set the refresh interval on it and it would handle it that way?

I mean I have one .csv with products pricelist, I need to upload this .csv daily by API and automatically fill one dashboard with this fresh data and compare the price history by product partnumber.

Example files uploaded:
file: file-2025-03-11.csv
file: file-2025-03-10.csv
file: file-2025-03-09.csv

Dashboard:
Partnumber 123

    • 100$ (file-2025-03-11.csv)
    • 99$ (file-2025-03-10.csv)
    • 95$ (file-2025-03-09.csv)

Is it possible to set multiple sources and fill automatically or I need to make a walk around like:
actualdayPrices.csv, yeterdayPrices.csv, 2daysAgoPrices.csv and update every time with the data?