Start Response Import
POST/surveys/:surveyId/import-responses
Starts an import of a CSV or TSV file. See the Response Import/Export API Overview for more detail on how to use this endpoint within an import workflow.
The API console does not generate code correctly for this endpoint. Use curl for sending requests.
The API console does not render code generation correctly when used to upload CSV or TSV files to this endpoint. Use curl for testing this endpoint.
Import via Locally Hosted File
To import using a locally hosted CSV or TSV file, see this example:
Import via Locally Hosted File
curl --location --request POST 'https://iad1.qualtrics.com/API/v3/surveys/SV_bwrylOA5nNnI9M1/import-responses' \
--data-binary '@MyResponses.csv'--header 'Content-Type: text/csv' \
--header 'charset: UTF-8' \
--header 'Authorization: Bearer <EXAMPLE_TOKEN>'
Import via a File Hosted at a Public URL
To import using a remote, publicly hosted CSV or TSV file, see this example:
Import via a File Hosted at a Public URL
curl --location --request POST 'https://iad1.qualtrics.com/API/v3/surveys/SV_bwrylOA5nNnI9M1/import-responses' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <EXAMPLE_TOKEN>' \
--data-raw '{
"format": "csv",
"fileUrl": "http://myfilehost.com/MyResponses.csv"
}'
Files Uploaded from a Remote Location Require a Public URL
A CSV or TSV file uploaded from a remote location must be available via a publicly accessible URL.
Request
Responses
- 200
- 400
- 401
- 404
- 413
- 429
- 500
Successful import creation
Invalid import creation request
Unauthorized
Survey not found
Import file is too large
Previous import still in progress
Internal server error