Replace upload data
Organization Admin permissions are required to use this endpoint.
Replace the data in an existing CSV upload.
The view’s uploaded_table_name property and references to it (returned as refreshedModelIds) will automatically update, but the upload’s ID will remain unchanged. This means that any documents, queries, views, etc. using the upload will be re-pointed to the new data. For a CSV that keeps its table, the replacement data is swapped into the existing table in place. Otherwise, Omni creates a new table for the replacement, and the previous data’s artifacts are left untouched.
Column data types
Columns already in the data input table keep their saved type and date format, and new columns are detected from the file. A value that doesn’t adhere to its column’s saved data type fails the request. To change a column’s type, delete the upload and create it again.Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Body
Supported for Postgres, Snowflake, Databricks, Lakebase, BigQuery, Redshift, SQL Server, Fabric, and MotherDuck connections.
The column(s) that uniquely identify a row, as a JSON array of column names (["id"]) or a comma-separated list (id,region). null or an empty value means the upload doesn't have a key. If a key is set, every row must have a value for each key column.
The key becomes the view's primary key, recorded under the column names as your warehouse stores them.
See Setting keys for more information, including how to write to the table in apps.
Response
Upload data replaced successfully

