Uploads

Validate an uploaded file

Validate an upload and return the filename for input_files. CSV becomes JSONL: delimiter detected, duplicate and blank headers renamed, extra cells kept as column_N, a user _row_id column becomes _row_id_2.

post/validate-upload

Request

  • Base URL
    https://api.autumn.ai
  • URL
    https://api.autumn.ai/validate-upload
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key
    • or HTTP bearer

Request body

task_idstring required

The task the file belongs to.

filenamestring required

A .csv, .txt, .md or .markdown file name.

Example request

{
  "filename": "accounts.csv"
}

Response

The validated file; pass filename in input_files.

filenamestring required

Pass this in input_files.

pathstring required
rowsinteger nullable
fieldsstring[] nullable
renamedobject[] nullable

Duplicate or blank headers that were renamed: index, original, name.

delimiterstring nullable
extra_columnsinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.