V200611
Click here for a complete list of operations.
UpsertContact
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 /soap/V200611.asmx HTTP/1.1 Host: api.cvent.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://api.cvent.com/2006-11/UpsertContact" <?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:Header> <CventSessionHeader xmlns="http://api.cvent.com/2006-11"> <CventSessionValue>string</CventSessionValue> </CventSessionHeader> </soap:Header> <soap:Body> <UpsertContact xmlns="http://api.cvent.com/2006-11"> <Contacts> <Contact SourceId="string" FirstName="string" LastName="string" EmailAddress="string" CCEmailAddress="string" Active="boolean" Company="string" Title="string" ContactType="string" ContactTypeCode="string" Salutation="string" Nickname="string" MiddleName="string" Designation="string" ExcludedFromEmail="boolean" LastOptOutBy="string" LastOptOutDate="dateTime" CreatedDate="dateTime" CreatedBy="string" LastModifiedDate="dateTime" LastModifiedBy="string" EmailAddressStatus="string" LogDate="dateTime" LogReason="string" LogResponse="string" PrimaryAddressType="Work or Home" HomeAddress1="string" HomeAddress2="string" HomeAddress3="string" HomeCity="string" HomeState="string" HomeStateCode="string" HomePostalCode="string" HomeCountry="string" HomeCountryCode="string" HomePhone="string" HomeFax="string" WorkAddress1="string" WorkAddress2="string" WorkAddress3="string" WorkCity="string" WorkState="string" WorkStateCode="string" WorkPostalCode="string" WorkCountry="string" WorkCountryCode="string" WorkPhone="string" WorkFax="string" MobilePhone="string" Pager="string" SMTPCode="string" MembershipCode="string" JoinDate="dateTime" ExpirationDate="dateTime" LastRenewalDate="dateTime" FacebookURL="string" TwitterURL="string" LinkedInURL="string" Gender="string" DateOfBirth="dateTime" SocialSecurityNumber="string" NationalIdentificationNumber="string" PassportNumber="string" PassportCountry="string" PassportCountryCode="string" ActivityId="string" ParentContactId="string" OptedIn="boolean" ImageURL="string" IsCreatedViaTestReg="boolean" IsObfuscated="boolean" NationalProviderIdentifier="string"> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> </Contact> <Contact SourceId="string" FirstName="string" LastName="string" EmailAddress="string" CCEmailAddress="string" Active="boolean" Company="string" Title="string" ContactType="string" ContactTypeCode="string" Salutation="string" Nickname="string" MiddleName="string" Designation="string" ExcludedFromEmail="boolean" LastOptOutBy="string" LastOptOutDate="dateTime" CreatedDate="dateTime" CreatedBy="string" LastModifiedDate="dateTime" LastModifiedBy="string" EmailAddressStatus="string" LogDate="dateTime" LogReason="string" LogResponse="string" PrimaryAddressType="Work or Home" HomeAddress1="string" HomeAddress2="string" HomeAddress3="string" HomeCity="string" HomeState="string" HomeStateCode="string" HomePostalCode="string" HomeCountry="string" HomeCountryCode="string" HomePhone="string" HomeFax="string" WorkAddress1="string" WorkAddress2="string" WorkAddress3="string" WorkCity="string" WorkState="string" WorkStateCode="string" WorkPostalCode="string" WorkCountry="string" WorkCountryCode="string" WorkPhone="string" WorkFax="string" MobilePhone="string" Pager="string" SMTPCode="string" MembershipCode="string" JoinDate="dateTime" ExpirationDate="dateTime" LastRenewalDate="dateTime" FacebookURL="string" TwitterURL="string" LinkedInURL="string" Gender="string" DateOfBirth="dateTime" SocialSecurityNumber="string" NationalIdentificationNumber="string" PassportNumber="string" PassportCountry="string" PassportCountryCode="string" ActivityId="string" ParentContactId="string" OptedIn="boolean" ImageURL="string" IsCreatedViaTestReg="boolean" IsObfuscated="boolean" NationalProviderIdentifier="string"> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> </Contact> </Contacts> </UpsertContact> </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:Header> <CventSessionHeader xmlns="http://api.cvent.com/2006-11"> <CventSessionValue>string</CventSessionValue> </CventSessionHeader> </soap:Header> <soap:Body> <UpsertContactResponse xmlns="http://api.cvent.com/2006-11"> <UpsertContactResult xmlns="http://schemas.cvent.com/api/2006-11"> <UpsertContactResult Id="string" ReferenceId="string" SourceId="string" Success="boolean" NewContact="boolean"> <Errors> <Error xsi:nil="true" /> <Error xsi:nil="true" /> </Errors> </UpsertContactResult> <UpsertContactResult Id="string" ReferenceId="string" SourceId="string" Success="boolean" NewContact="boolean"> <Errors> <Error xsi:nil="true" /> <Error xsi:nil="true" /> </Errors> </UpsertContactResult> </UpsertContactResult> </UpsertContactResponse> </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 /soap/V200611.asmx HTTP/1.1 Host: api.cvent.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:Header> <CventSessionHeader xmlns="http://api.cvent.com/2006-11"> <CventSessionValue>string</CventSessionValue> </CventSessionHeader> </soap12:Header> <soap12:Body> <UpsertContact xmlns="http://api.cvent.com/2006-11"> <Contacts> <Contact SourceId="string" FirstName="string" LastName="string" EmailAddress="string" CCEmailAddress="string" Active="boolean" Company="string" Title="string" ContactType="string" ContactTypeCode="string" Salutation="string" Nickname="string" MiddleName="string" Designation="string" ExcludedFromEmail="boolean" LastOptOutBy="string" LastOptOutDate="dateTime" CreatedDate="dateTime" CreatedBy="string" LastModifiedDate="dateTime" LastModifiedBy="string" EmailAddressStatus="string" LogDate="dateTime" LogReason="string" LogResponse="string" PrimaryAddressType="Work or Home" HomeAddress1="string" HomeAddress2="string" HomeAddress3="string" HomeCity="string" HomeState="string" HomeStateCode="string" HomePostalCode="string" HomeCountry="string" HomeCountryCode="string" HomePhone="string" HomeFax="string" WorkAddress1="string" WorkAddress2="string" WorkAddress3="string" WorkCity="string" WorkState="string" WorkStateCode="string" WorkPostalCode="string" WorkCountry="string" WorkCountryCode="string" WorkPhone="string" WorkFax="string" MobilePhone="string" Pager="string" SMTPCode="string" MembershipCode="string" JoinDate="dateTime" ExpirationDate="dateTime" LastRenewalDate="dateTime" FacebookURL="string" TwitterURL="string" LinkedInURL="string" Gender="string" DateOfBirth="dateTime" SocialSecurityNumber="string" NationalIdentificationNumber="string" PassportNumber="string" PassportCountry="string" PassportCountryCode="string" ActivityId="string" ParentContactId="string" OptedIn="boolean" ImageURL="string" IsCreatedViaTestReg="boolean" IsObfuscated="boolean" NationalProviderIdentifier="string"> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> </Contact> <Contact SourceId="string" FirstName="string" LastName="string" EmailAddress="string" CCEmailAddress="string" Active="boolean" Company="string" Title="string" ContactType="string" ContactTypeCode="string" Salutation="string" Nickname="string" MiddleName="string" Designation="string" ExcludedFromEmail="boolean" LastOptOutBy="string" LastOptOutDate="dateTime" CreatedDate="dateTime" CreatedBy="string" LastModifiedDate="dateTime" LastModifiedBy="string" EmailAddressStatus="string" LogDate="dateTime" LogReason="string" LogResponse="string" PrimaryAddressType="Work or Home" HomeAddress1="string" HomeAddress2="string" HomeAddress3="string" HomeCity="string" HomeState="string" HomeStateCode="string" HomePostalCode="string" HomeCountry="string" HomeCountryCode="string" HomePhone="string" HomeFax="string" WorkAddress1="string" WorkAddress2="string" WorkAddress3="string" WorkCity="string" WorkState="string" WorkStateCode="string" WorkPostalCode="string" WorkCountry="string" WorkCountryCode="string" WorkPhone="string" WorkFax="string" MobilePhone="string" Pager="string" SMTPCode="string" MembershipCode="string" JoinDate="dateTime" ExpirationDate="dateTime" LastRenewalDate="dateTime" FacebookURL="string" TwitterURL="string" LinkedInURL="string" Gender="string" DateOfBirth="dateTime" SocialSecurityNumber="string" NationalIdentificationNumber="string" PassportNumber="string" PassportCountry="string" PassportCountryCode="string" ActivityId="string" ParentContactId="string" OptedIn="boolean" ImageURL="string" IsCreatedViaTestReg="boolean" IsObfuscated="boolean" NationalProviderIdentifier="string"> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <CustomFieldDetail FieldName="string" FieldType="string" FieldValue="string" FieldId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <ContactGroupDetail GroupName="string" GroupId="string" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> <DistributionListDetail DistributionListName="string" Approved="boolean" xmlns="http://schemas.cvent.com/api/2006-11" /> </Contact> </Contacts> </UpsertContact> </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:Header> <CventSessionHeader xmlns="http://api.cvent.com/2006-11"> <CventSessionValue>string</CventSessionValue> </CventSessionHeader> </soap12:Header> <soap12:Body> <UpsertContactResponse xmlns="http://api.cvent.com/2006-11"> <UpsertContactResult xmlns="http://schemas.cvent.com/api/2006-11"> <UpsertContactResult Id="string" ReferenceId="string" SourceId="string" Success="boolean" NewContact="boolean"> <Errors> <Error xsi:nil="true" /> <Error xsi:nil="true" /> </Errors> </UpsertContactResult> <UpsertContactResult Id="string" ReferenceId="string" SourceId="string" Success="boolean" NewContact="boolean"> <Errors> <Error xsi:nil="true" /> <Error xsi:nil="true" /> </Errors> </UpsertContactResult> </UpsertContactResult> </UpsertContactResponse> </soap12:Body> </soap12:Envelope>