Create Response

Use this API to create a response for a survey.

POST https://{{env}}.survey2connect.com/v2/api/surveys/{{survey_id}}/responses

Path Parameters

NameTypeDescription

env*

String

Datacenter identifier for client

survey_id*

String

the id of survey for which response is to be created

Headers

NameTypeDescription

Authorization

String

Bearer {access_token}

Request Body

NameTypeDescription

collector_id *

String

Corresponding API collector unique id (provided by platform)

responses*

Array

Array of individual responses to be created

{
  "updatedAt": "2021-10-02T07:55:00.854Z",
  "surId": "614425fa5e5d085052c9117b",
  "collectId\"": "6152f09db7a86c4559f5ddab",
  "resStatus": "1",
  "absPageNum": 1,
  "totPages": 15,
  "data": {
    "61447270d3ff56504c5b1e3a": [
      {
        "rowId": "61447270d3ff56504c5b1e3e"
      },
      {
        "rowId": "61447270d3ff56504c5b1e3c"
      }
    ],
    "61446c095e5d085052c97a05": [
      {
        "rowId": "61446c4f1cf3c0507ef88382"
      },
      {
        "rowId": "61446c4f1cf3c0507ef88381"
      }
    ],
    "61446bd9c938d750773b7b49": [
      {
        "rowId": "61446bd9c938d750773b7b4a",
        "text": "sample 7"
      }
    ],
    "6151b9de1995d64478b91bfc": [
      {
        "rowId": "6151b9de1995d64478b91bff"
      },
      {
        "rowId": "6151b9de1995d64478b91bfd"
      }
    ],
    "614460515e5d085052c96338": [
      {
        "rowId": "6144622d5e5d085052c966ff"
      },
      {
        "rowId": "6144622d5e5d085052c966fe"
      }
    ],
    "6151c0752b4988447e4c51aa": [
      {
        "colId": "6151c0752b4988447e4c51ab",
        "rowId": "61445710c938d750773b535a",
        "text": "sample data"
      }
    ],
    "614456e9c938d750773b52c0": [
      {
        "rowId": "61445710c938d750773b535a"
      },
      {
        "rowId": "61445710c938d750773b5359"
      }
    ],
    "614455ce5e5d085052c94daf": [
      {
        "rowId": "614455ce5e5d085052c94db0",
        "text": "sample 5"
      }
    ],
    "614454a81cf3c0507ef855f7": [
      {
        "rowId": "614454a81cf3c0507ef855fc"
      },
      {
        "rowId": "614454a81cf3c0507ef855fb"
      }
    ],
    "61444ea85e5d085052c940dc": [
      {
        "rowId": "61444ea85e5d085052c940e2"
      },
      {
        "rowId": "61444ea85e5d085052c940e1"
      }
    ],
    "61443423c938d750773b2458": [
      {
        "rowId": "61443423c938d750773b245d"
      },
      {
        "rowId": "61443423c938d750773b245c"
      }
    ],
    "6151b35e2b4988447e4c15d5": [
      {
        "colId": "6151b3679f5f0644a7fb8e03",
        "rowId": "6149e42a20a4dd2d6ce4ccf3",
        "text": "abcd"
      }
    ],
    "61442853c938d750773b1355": [
      {
        "rowId": "6149e40ce3a3902d9dac43e0"
      },
      {
        "rowId": "6149e42a20a4dd2d6ce4ccf3"
      }
    ],
    "6144271a1cf3c0507ef81be7": [
      {
        "rowId": "6144271a1cf3c0507ef81be8",
        "text": "sample data"
      }
    ]
  },
  "totalQuesToDisplay": 76,
  "modified": 1632824430000,
  "created": 163282443000
}{

Last updated