Load a preview of a csv file
Changed onRequest
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/w/{workspace}/job_helpers/load_csv_preview/{path}
- Auth: one of:
- HTTP bearer
- API key in cookie token
Path parameters
Query parameters
Read the file from this object storage resource instead of the workspace storage.
Whether the first CSV line names the columns. Defaults to true.
JSON object, column name to filter. A number column takes an optional comparison operator and a number (>=10), a boolean column a boolean, and any other column a case-insensitive substring, or =value for an exact match. A search_term without a search_col matches any column, case-insensitively.
Response
Csv Preview: columns, column_types (Arrow type names), rows, and the csv_separator the file was read with, guessed from its first bytes when none is given. A .jsonl or .ndjson file is read as newline-delimited JSON.
Changes
- info
added the new optional
queryrequest parametercsv_has_header - info
added the new optional
queryrequest parameterfilters - info
added the new optional
queryrequest parameters3_resource_path
- info