survey


Click here for a complete list of operations.

createSurvey

This method allows you to create a new survey.

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/createSurvey"

<?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>
    <createSurvey xmlns="https://api.peoplevine.com/survey.asmx">
      <auth>
        <api_username>string</api_username>
        <api_password>string</api_password>
        <api_key>string</api_key>
        <company_no>double</company_no>
        <username>string</username>
        <password>string</password>
        <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>
        <auth_type>string</auth_type>
        <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>
      <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>
    </createSurvey>
  </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>
    <createSurveyResponse xmlns="https://api.peoplevine.com/survey.asmx">
      <createSurveyResult />
    </createSurveyResponse>
  </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>
    <createSurvey xmlns="https://api.peoplevine.com/survey.asmx">
      <auth>
        <api_username>string</api_username>
        <api_password>string</api_password>
        <api_key>string</api_key>
        <company_no>double</company_no>
        <username>string</username>
        <password>string</password>
        <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>
        <auth_type>string</auth_type>
        <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>
      <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>
    </createSurvey>
  </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>
    <createSurveyResponse xmlns="https://api.peoplevine.com/survey.asmx">
      <createSurveyResult />
    </createSurveyResponse>
  </soap12:Body>
</soap12:Envelope>