PUT
/
api
/
files
/
{fileName}
curl --request PUT \
  --url http://127.0.0.1:47334/api/files/{fileName} \
  --header 'Content-Type: multipart/form-data' \
  --form 'original_file_name=<string>'
{
  "columns": [
    "<string>"
  ],
  "name": "<string>",
  "row_count": 123
}

The REST API endpoints can be used with MindsDB running locally at http://127.0.0.1:47334/api.

Note that the trailing whitespaces on column names are erased upon uploading a file to MindsDB.

Path Parameters

fileName
string
required

The name of the file

Body

multipart/form-data
file
file

The file to upload

original_file_name
string

The original name of the file (optional)

Response

200
application/json
View was successfully updated
columns
string[]
name
string
row_count
number