Survey Submitted Webhook
The “Survey Submitted” webhook is triggered whenever a survey is completed. Typically this will be when a participant completes the survey in the MyDataHelps app/website, but it will also be triggered when a coordinator completes the survey on the participant’s behalf.
Event Data
The following data will be included as a JSON payload in the POST
request when the webhook is triggered.
EventType
string
Identifies the event type. In this case, SurveySubmitted
.
ParticipantIdentifier
string
Project-set, unique participant identifier.
SurveyID
guid
Identifier for the survey the event is associated with.
SurveyResultID
guid
Identifier for the survey result the event is associated with.
SurveyVersion
integer
Which version of the survey was responded to.
TaskID
guid
Identifier for the survey task the event is associated with.
SurveyName
string
The name of the survey the event is associated with.
{
"EventType": "SurveySubmitted",
"ProjectID": "3a713a06-295d-4803-9602-776f09a1483b",
"ParticipantID": "419d567e-76e6-4b53-8b3c-567d7260a85d",
"ParticipantIdentifier": "PT-123",
"LinkIdentifier": "0971fbcd-ec92-414c-bd49-41a3c8b6547b",
"SurveyID": "083b44c8-4273-4ad5-9132-3dce126d5e62",
"SurveyResultID": "230b27b1-df0d-441d-8485-a929cdf4895a",
"SurveyVersion": 8,
"TaskID": "5a613cf2-97ee-4fca-b2f7-ea79c5d6d35e",
"SurveyName": "Sleep Time"
}