v1

latestSwagger 2.02026-08-06250450289.0 KB
response

Batch create responses

post/v3/responses/batch

Request body

survey_idnumber required

ID of the survey

Example request

{
  "survey_id": 1,
  "responses": [
    {
      "contact_id": 2,
      "contact": {
        "full_name": "Jane Doe",
        "email": "janedoe@surveysparrow.com",
        "phone": "91234567833",
        "mobile": "1653452783",
        "job_title": "Manager",
        "contact_type": "contact"
      },
      "channel_id": 3,
      "meta_data": {
        "os": "macOS",
        "browser": "Chrome",
        "time_zone": "Asia/Calcutta",
        "browser_language": "en-GB",
        "date_time": "2022-11-02T11:28:55.642Z",
        "ip": "127.0.0.1",
        "device_type": "COMPUTER",
        "language": "English"
      },
      "answers": [
        {
          "question_id": 1,
          "parent_question_id": 1
        }
      ]
    }
  ]
}

Response

Accepted