curl --request POST \
--url https://services.leadconnectorhq.com/surveys/schedule-survey-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"surveyIds": [
"id1",
"id2",
"id3"
],
"startDate": "2023-01-01T00:00:00.000Z",
"endDate": "2023-01-31T23:59:59.999Z",
"locationId": "location1",
"companyId": "company1",
"type": "survey"
}
'{
"successMessage": "The export started and when the download link is ready, it will be sent via email."
}Schedule survey submission export as CSV
curl --request POST \
--url https://services.leadconnectorhq.com/surveys/schedule-survey-export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"surveyIds": [
"id1",
"id2",
"id3"
],
"startDate": "2023-01-01T00:00:00.000Z",
"endDate": "2023-01-31T23:59:59.999Z",
"locationId": "location1",
"companyId": "company1",
"type": "survey"
}
'{
"successMessage": "The export started and when the download link is ready, it will be sent via email."
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 List of survey IDs to be exported
["id1", "id2", "id3"]Start date for the export
"2023-01-01T00:00:00.000Z"
End date for the export
"2023-01-31T23:59:59.999Z"
ID of the location for which surveys will be exported
"location1"
ID of the company
"company1"
Type of the export should be survey
"survey"
Successful response
Success message
"The export started and when the download link is ready, it will be sent via email."
Was this page helpful?