This page documents the canonical HTTP contract for this endpoint.
Developer API keys need the listed scope. A valid authenticated user session may also call this route.
Mapping analysis can fall back to basic unmapped-column suggestions when the AI mapping service is unavailable. Only the first five rows are returned as sample_rows. Consult the workspace column catalog for valid table fields; the dynamic response example is abbreviated.
Path parameters
table_idrequiredstring
Research table identifier; caller must have access.
| Name | Type | Description |
|---|---|---|
| table_idrequired | string | Research table identifier; caller must have access. |
Body parameters
filerequiredfile<text/csv>
CSV uploaded as multipart form data.
null_policy· optionalstring
common treats configured common null tokens as empty; preserve retains input values.
| Name | Type | Description |
|---|---|---|
| filerequired | file<text/csv> | CSV uploaded as multipart form data. |
| null_policy | string | common treats configured common null tokens as empty; preserve retains input values. |
Errors
| Status | Meaning |
|---|---|
| 401 | Authentication is missing or invalid. |
| 403 | The credential is invalid or lacks the required scope, or the caller cannot access the resource. |
| 400 | The CSV is empty or could not be parsed. |
| 422 | Request validation failed, including a missing required file or invalid multipart/form value. |
| 500 | An unexpected preview-processing error occurred. |
