Create a New Response
POST/surveys/:surveyId/responses
The fields in values depend on the survey definition. The easiest way to find this format is to perform a get a single response call for the survey which you are trying import values for Retrieve a Survey Response. The result of that call will demonstrate the format for the Create a New Response Call.
Files can be included in your import to be associated with file upload questions in your survey. Select multipart/form-data as the request type in the documentation below to see the full request format.
multipart/form-data requests allow you to send multiple different entities as body parts in a single request. We can use this to create a request to upload a survey response with file attachments. A minimum of two body parts are required in addition to the files you wish to upload.
response: This body part is the JSON representation of the survey response. As with the regularapplication/jsonPOST request for this endpoint, the minimum required object is{"values": {}}. Note that you do not need to include any file metadata in the survey response as the necessary metadata will automatically be added to the response from the files that you upload with it.fileMapping: This body part is also a JSON object. Its purpose is to tell the importer which files go with which questions in your survey. E.g. if we wanted to import a file with the body part key offile1and we wanted that file to be associated with the file upload questionQID1, ourfileMappingobject would be{"file1": "QID1"}. For the remainder of your request you can attach up to five files. Each file must have a body part key offile1,file2,file3,file4, orfile5.
Request
Responses
- 200
- 400
- 401
- 404
- 413
- 500
Survey Response Successfully Created
Bad Survey Response Format or Response Already Exists
Unauthorized
Not Found
Survey Response Is Too Large
Internal Error