Uploads

Upload CSV file

post/api/v1/uploads

Request

  • Base URL
    https://omniapp.co (the document declares no server; this is the origin it was published from)
  • URL
    https://omniapp.co/api/v1/uploads
  • Auth
    HTTP bearer

Request body multipart/form-data

branchIdstring uuid

UUID of the branch to create the view in (mutually exclusive with branchName)

branchNamestring

Name of the branch to create the view in (mutually exclusive with branchId)

filestring binary required

The CSV file to upload

modelIdstring uuid required

UUID of the model to create the view in

viewNamestring

Override the view name (defaults to sanitized file name, suffixed with _2, _3, and so on if the model already has a view by that name)

Response

CSV uploaded successfully

fileNamestring required

Original file name

idstring uuid required

Unique identifier for the upload

inDbAsTableNamestring required

Database table name in the scratch schema

modelIdstring uuid required

Model ID the view was created in

rowCountinteger required

Number of rows in the uploaded file

truncatedboolean required

Whether the file was truncated due to row limit

viewCreatedboolean required

Whether a view was created in the model

viewNamestring required

Name of the view created

Example response

{
  "fileName": "users.csv"
}

Changes

No recorded changes to this operation across all 97 revisions of this API.