survey
Click here for a complete list of operations.
updateSurveyResponseData
This method is used to update the survey response data.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /survey.asmx HTTP/1.1 Host: api.peoplevine.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "https://api.peoplevine.com/survey.asmx/updateSurveyResponseData" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <updateSurveyResponseData xmlns="https://api.peoplevine.com/survey.asmx"> <auth> <referenceTypes> <referenceType> <reference_type>string</reference_type> <reference_no>double</reference_no> </referenceType> <referenceType> <reference_type>string</reference_type> <reference_no>double</reference_no> </referenceType> </referenceTypes> <timezone_id>string</timezone_id> <locale> <currency>string</currency> <language>string</language> <country>string</country> </locale> <business_no>double</business_no> <customer_no>double</customer_no> <auth_method>string</auth_method> <timezone_offset>double</timezone_offset> <api_username>string</api_username> <api_password>string</api_password> <api_key>string</api_key> <auth_type>string</auth_type> <username>string</username> <password>string</password> <company_no>double</company_no> <system_name>string</system_name> <system_company_no>double</system_company_no> <ip_address>string</ip_address> <session_id>string</session_id> <device_type>string</device_type> <referrer>string</referrer> <user_info>string</user_info> </auth> <fields> <submitted_customer_no>double</submitted_customer_no> <reference_type_alt>string</reference_type_alt> <reference_title>string</reference_title> <reference_no_alt>double</reference_no_alt> <reference_type>string</reference_type> <reference_no>double</reference_no> <updateStatus>boolean</updateStatus> <company_no>double</company_no> <survey_group_no>double</survey_group_no> <survey> <language>string</language> <enableAutoLogout>boolean</enableAutoLogout> <confirmation_text>string</confirmation_text> <confirmation_header>string</confirmation_header> <new_crm_record>boolean</new_crm_record> <business_no>double</business_no> <company_name>string</company_name> <prefill_responses>boolean</prefill_responses> <button_create>string</button_create> <button_edit>string</button_edit> <visibility>string</visibility> <visibility_scope>string</visibility_scope> <isVisible>boolean</isVisible> <customerResponses>double</customerResponses> <survey_status>string</survey_status> <multiple_responses>boolean</multiple_responses> <allow_edit>boolean</allow_edit> <page_no>double</page_no> <reference_type>string</reference_type> <display_to>string</display_to> <reference_no>double</reference_no> <survey_no>double</survey_no> <company_no>double</company_no> <survey_name>string</survey_name> <survey_description>string</survey_description> <created_on>dateTime</created_on> <user_no>double</user_no> </survey> <submitted_customer> <lastVisit>dateTime</lastVisit> <totalVisits>double</totalVisits> <totalSpent>double</totalSpent> <isMember>boolean</isMember> <wasMember>boolean</wasMember> <hasApplied>boolean</hasApplied> <when_applied>dateTime</when_applied> <social> <linkedIn>string</linkedIn> <twitter>string</twitter> <facebook>string</facebook> <instagram>string</instagram> <tiktok>string</tiktok> </social> <mobile_number_cc>string</mobile_number_cc> <phone_number_cc>string</phone_number_cc> <member_since>dateTime</member_since> <middle_name>string</middle_name> <membership_sku>string</membership_sku> <card_status>string</card_status> <membership_title>string</membership_title> <member_discount>double</member_discount> <points>double</points> <tag>string</tag> <cc_email>string</cc_email> <customer_source>string</customer_source> <username>string</username> <gender>string</gender> <company_title>string</company_title> <anniversary_date>dateTime</anniversary_date> <affiliate_no>double</affiliate_no> <membership_id>string</membership_id> <password>string</password> <passbook_enabled>string</passbook_enabled> <birthdate>dateTime</birthdate> <enableHouseAccount>boolean</enableHouseAccount> <opt_in_email>boolean</opt_in_email> <opt_in_sms>boolean</opt_in_sms> <customer_no>double</customer_no> <first_name>string</first_name> <last_name>string</last_name> <address>string</address> <address2>string</address2> <address3>string</address3> <city>string</city> <state>string</state> <zip_code>string</zip_code> <country>string</country> <company_name>string</company_name> <mobile_number>string</mobile_number> <phone_number>string</phone_number> <email>string</email> <latitude>string</latitude> <longitude>string</longitude> <profile_photo>string</profile_photo> <customer_reference>string</customer_reference> </submitted_customer> <customer> <lastVisit>dateTime</lastVisit> <totalVisits>double</totalVisits> <totalSpent>double</totalSpent> <isMember>boolean</isMember> <wasMember>boolean</wasMember> <hasApplied>boolean</hasApplied> <when_applied>dateTime</when_applied> <social> <linkedIn>string</linkedIn> <twitter>string</twitter> <facebook>string</facebook> <instagram>string</instagram> <tiktok>string</tiktok> </social> <mobile_number_cc>string</mobile_number_cc> <phone_number_cc>string</phone_number_cc> <member_since>dateTime</member_since> <middle_name>string</middle_name> <membership_sku>string</membership_sku> <card_status>string</card_status> <membership_title>string</membership_title> <member_discount>double</member_discount> <points>double</points> <tag>string</tag> <cc_email>string</cc_email> <customer_source>string</customer_source> <username>string</username> <gender>string</gender> <company_title>string</company_title> <anniversary_date>dateTime</anniversary_date> <affiliate_no>double</affiliate_no> <membership_id>string</membership_id> <password>string</password> <passbook_enabled>string</passbook_enabled> <birthdate>dateTime</birthdate> <enableHouseAccount>boolean</enableHouseAccount> <opt_in_email>boolean</opt_in_email> <opt_in_sms>boolean</opt_in_sms> <customer_no>double</customer_no> <first_name>string</first_name> <last_name>string</last_name> <address>string</address> <address2>string</address2> <address3>string</address3> <city>string</city> <state>string</state> <zip_code>string</zip_code> <country>string</country> <company_name>string</company_name> <mobile_number>string</mobile_number> <phone_number>string</phone_number> <email>string</email> <latitude>string</latitude> <longitude>string</longitude> <profile_photo>string</profile_photo> <customer_reference>string</customer_reference> </customer> <responses> <surveyAnswer> <survey_response_no>double</survey_response_no> <field_type>string</field_type> <field_label>string</field_label> <survey_answer>string</survey_answer> <data_map>string</data_map> <survey_answer_no>double</survey_answer_no> <survey_no>double</survey_no> <survey_field_no>double</survey_field_no> <customer_no>double</customer_no> <created_on>dateTime</created_on> <response_id>string</response_id> </surveyAnswer> <surveyAnswer> <survey_response_no>double</survey_response_no> <field_type>string</field_type> <field_label>string</field_label> <survey_answer>string</survey_answer> <data_map>string</data_map> <survey_answer_no>double</survey_answer_no> <survey_no>double</survey_no> <survey_field_no>double</survey_field_no> <customer_no>double</customer_no> <created_on>dateTime</created_on> <response_id>string</response_id> </surveyAnswer> </responses> <survey_response_no>double</survey_response_no> <survey_no>double</survey_no> <customer_no>double</customer_no> <response_id>string</response_id> <response_notes>string</response_notes> <ip_address>string</ip_address> <session_id>string</session_id> <created_on>dateTime</created_on> <modified_on>dateTime</modified_on> <user_no>double</user_no> <modified_user_no>double</modified_user_no> <flag_viewed>dateTime</flag_viewed> <flag_viewed_no>double</flag_viewed_no> <flag_completed>dateTime</flag_completed> <flag_completed_no>double</flag_completed_no> <response_status>string</response_status> <response_data>string</response_data> </fields> </updateSurveyResponseData> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <updateSurveyResponseDataResponse xmlns="https://api.peoplevine.com/survey.asmx"> <updateSurveyResponseDataResult /> </updateSurveyResponseDataResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /survey.asmx HTTP/1.1 Host: api.peoplevine.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <updateSurveyResponseData xmlns="https://api.peoplevine.com/survey.asmx"> <auth> <referenceTypes> <referenceType> <reference_type>string</reference_type> <reference_no>double</reference_no> </referenceType> <referenceType> <reference_type>string</reference_type> <reference_no>double</reference_no> </referenceType> </referenceTypes> <timezone_id>string</timezone_id> <locale> <currency>string</currency> <language>string</language> <country>string</country> </locale> <business_no>double</business_no> <customer_no>double</customer_no> <auth_method>string</auth_method> <timezone_offset>double</timezone_offset> <api_username>string</api_username> <api_password>string</api_password> <api_key>string</api_key> <auth_type>string</auth_type> <username>string</username> <password>string</password> <company_no>double</company_no> <system_name>string</system_name> <system_company_no>double</system_company_no> <ip_address>string</ip_address> <session_id>string</session_id> <device_type>string</device_type> <referrer>string</referrer> <user_info>string</user_info> </auth> <fields> <submitted_customer_no>double</submitted_customer_no> <reference_type_alt>string</reference_type_alt> <reference_title>string</reference_title> <reference_no_alt>double</reference_no_alt> <reference_type>string</reference_type> <reference_no>double</reference_no> <updateStatus>boolean</updateStatus> <company_no>double</company_no> <survey_group_no>double</survey_group_no> <survey> <language>string</language> <enableAutoLogout>boolean</enableAutoLogout> <confirmation_text>string</confirmation_text> <confirmation_header>string</confirmation_header> <new_crm_record>boolean</new_crm_record> <business_no>double</business_no> <company_name>string</company_name> <prefill_responses>boolean</prefill_responses> <button_create>string</button_create> <button_edit>string</button_edit> <visibility>string</visibility> <visibility_scope>string</visibility_scope> <isVisible>boolean</isVisible> <customerResponses>double</customerResponses> <survey_status>string</survey_status> <multiple_responses>boolean</multiple_responses> <allow_edit>boolean</allow_edit> <page_no>double</page_no> <reference_type>string</reference_type> <display_to>string</display_to> <reference_no>double</reference_no> <survey_no>double</survey_no> <company_no>double</company_no> <survey_name>string</survey_name> <survey_description>string</survey_description> <created_on>dateTime</created_on> <user_no>double</user_no> </survey> <submitted_customer> <lastVisit>dateTime</lastVisit> <totalVisits>double</totalVisits> <totalSpent>double</totalSpent> <isMember>boolean</isMember> <wasMember>boolean</wasMember> <hasApplied>boolean</hasApplied> <when_applied>dateTime</when_applied> <social> <linkedIn>string</linkedIn> <twitter>string</twitter> <facebook>string</facebook> <instagram>string</instagram> <tiktok>string</tiktok> </social> <mobile_number_cc>string</mobile_number_cc> <phone_number_cc>string</phone_number_cc> <member_since>dateTime</member_since> <middle_name>string</middle_name> <membership_sku>string</membership_sku> <card_status>string</card_status> <membership_title>string</membership_title> <member_discount>double</member_discount> <points>double</points> <tag>string</tag> <cc_email>string</cc_email> <customer_source>string</customer_source> <username>string</username> <gender>string</gender> <company_title>string</company_title> <anniversary_date>dateTime</anniversary_date> <affiliate_no>double</affiliate_no> <membership_id>string</membership_id> <password>string</password> <passbook_enabled>string</passbook_enabled> <birthdate>dateTime</birthdate> <enableHouseAccount>boolean</enableHouseAccount> <opt_in_email>boolean</opt_in_email> <opt_in_sms>boolean</opt_in_sms> <customer_no>double</customer_no> <first_name>string</first_name> <last_name>string</last_name> <address>string</address> <address2>string</address2> <address3>string</address3> <city>string</city> <state>string</state> <zip_code>string</zip_code> <country>string</country> <company_name>string</company_name> <mobile_number>string</mobile_number> <phone_number>string</phone_number> <email>string</email> <latitude>string</latitude> <longitude>string</longitude> <profile_photo>string</profile_photo> <customer_reference>string</customer_reference> </submitted_customer> <customer> <lastVisit>dateTime</lastVisit> <totalVisits>double</totalVisits> <totalSpent>double</totalSpent> <isMember>boolean</isMember> <wasMember>boolean</wasMember> <hasApplied>boolean</hasApplied> <when_applied>dateTime</when_applied> <social> <linkedIn>string</linkedIn> <twitter>string</twitter> <facebook>string</facebook> <instagram>string</instagram> <tiktok>string</tiktok> </social> <mobile_number_cc>string</mobile_number_cc> <phone_number_cc>string</phone_number_cc> <member_since>dateTime</member_since> <middle_name>string</middle_name> <membership_sku>string</membership_sku> <card_status>string</card_status> <membership_title>string</membership_title> <member_discount>double</member_discount> <points>double</points> <tag>string</tag> <cc_email>string</cc_email> <customer_source>string</customer_source> <username>string</username> <gender>string</gender> <company_title>string</company_title> <anniversary_date>dateTime</anniversary_date> <affiliate_no>double</affiliate_no> <membership_id>string</membership_id> <password>string</password> <passbook_enabled>string</passbook_enabled> <birthdate>dateTime</birthdate> <enableHouseAccount>boolean</enableHouseAccount> <opt_in_email>boolean</opt_in_email> <opt_in_sms>boolean</opt_in_sms> <customer_no>double</customer_no> <first_name>string</first_name> <last_name>string</last_name> <address>string</address> <address2>string</address2> <address3>string</address3> <city>string</city> <state>string</state> <zip_code>string</zip_code> <country>string</country> <company_name>string</company_name> <mobile_number>string</mobile_number> <phone_number>string</phone_number> <email>string</email> <latitude>string</latitude> <longitude>string</longitude> <profile_photo>string</profile_photo> <customer_reference>string</customer_reference> </customer> <responses> <surveyAnswer> <survey_response_no>double</survey_response_no> <field_type>string</field_type> <field_label>string</field_label> <survey_answer>string</survey_answer> <data_map>string</data_map> <survey_answer_no>double</survey_answer_no> <survey_no>double</survey_no> <survey_field_no>double</survey_field_no> <customer_no>double</customer_no> <created_on>dateTime</created_on> <response_id>string</response_id> </surveyAnswer> <surveyAnswer> <survey_response_no>double</survey_response_no> <field_type>string</field_type> <field_label>string</field_label> <survey_answer>string</survey_answer> <data_map>string</data_map> <survey_answer_no>double</survey_answer_no> <survey_no>double</survey_no> <survey_field_no>double</survey_field_no> <customer_no>double</customer_no> <created_on>dateTime</created_on> <response_id>string</response_id> </surveyAnswer> </responses> <survey_response_no>double</survey_response_no> <survey_no>double</survey_no> <customer_no>double</customer_no> <response_id>string</response_id> <response_notes>string</response_notes> <ip_address>string</ip_address> <session_id>string</session_id> <created_on>dateTime</created_on> <modified_on>dateTime</modified_on> <user_no>double</user_no> <modified_user_no>double</modified_user_no> <flag_viewed>dateTime</flag_viewed> <flag_viewed_no>double</flag_viewed_no> <flag_completed>dateTime</flag_completed> <flag_completed_no>double</flag_completed_no> <response_status>string</response_status> <response_data>string</response_data> </fields> </updateSurveyResponseData> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <updateSurveyResponseDataResponse xmlns="https://api.peoplevine.com/survey.asmx"> <updateSurveyResponseDataResult /> </updateSurveyResponseDataResponse> </soap12:Body> </soap12:Envelope>