Upload an import file
POST/objects/:object_id/imports
Upload a CSV or XLSX (multipart/form-data with a file part) and get an import
job at its mapping stage: the file's headers, a five-row preview and a
suggested_mapping matched by header name.
Three steps, like the console:
- Upload (this call).
- Dry run —
POST …/imports/{job_id}/dry-runwith the mapping you want. PollGET …/imports/{job_id}untilstatusisready;dry_runholds the create / update counts anderrorsthe first row problems. - Confirm —
POST …/imports/{job_id}/confirm. Poll untilcompleted;error_report_urllists every row that was skipped.
Needs this credential to be allowed to create records of the object (and to
update them, when the mapping names an upsert_field_id). Customers and the
records of your own objects count against the plan's limits.
Request
Responses
- 201
- 400
- 401
- 403
- 404
The import job, at its mapping stage.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
The request was malformed, or a parameter was rejected.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
No token, an expired token, or a credential that has been revoked.
Response Headers
Correlation id for this request. Quote it when reporting a problem.
Refused. Either the credential does not hold the scope this endpoint needs (code: insufficient_scope), or the account's IP allow-list does not include the calling address (code: ip_not_allowed).
Response Headers
Correlation id for this request. Quote it when reporting a problem.
No such resource in this account.
Response Headers
Correlation id for this request. Quote it when reporting a problem.