HostedSuite

<back to all web services

UpdateContactRequest

Update a contact

The following routes are available for this service:
POST/api/contacts/update
UpdateContactRequest Parameters:
NameParameterData TypeRequiredDescription
ContactIdbodystringNoThe ID of the contact.
FirstNamebodystringNoThe contact's first name
LastNamebodystringNoThe contact's last name
InformationbodystringNoInformation about the contact
GreetingOverridebodystringNoThis contact's greeting override
MoreInformationbodystringNoEven more information about this Contact
PhoneNumbersbodyList<PhoneNumberInfo>NoThis contact's phone numbers
EmailAddressesbodyList<EmailAddressInfo>NoThis contact's email address(es)
LinksbodyList<HyperlinkInfo>NoThis contact's links
CategoryIdsbodyList<string>NoThe IDs of the categories to associate this client with. Leave NULL to not change
AlertbodystringNoThe alert to be displayed for the Contact
AlertExpirationDatebodystringNoThe date the alert expires. Leave blank to not expire
StatusbodystringNoThe status to be displayed for the Contact
StatusExpirationDatebodystringNoThe date the status expires. Leave blank to not expire
LocationbodystringNoThe contact's location
LongDistanceCodebodystringNoThe Contact's long distance code
CallInstructionsbodystringNoThe Instructions for the Contact
TitlebodystringNoThe title for the Contact
KeywordsbodyList<string>NoA list of keywords for the Contact
CustomFieldsbodyList<CustomFieldInfo>NoAny custom fields for the Contact
LoginUserNamebodystringNoUser name for the Contact to login with
LoginPasswordbodystringNoPassword for the Contact to login with
LoginMustChangePasswordAtNextLoginbodybool?NoThe contact must change their password at next login
LoginUserGroupIdbodystringNoUser group to assign to this Contact
ThirdPartyAccountIdbodystringNoThird party ID for this contact
AddressbodyAddressInfoNoThe contact's address
EmergencyInstructionsbodystringNoThe contact's emergency instructions
TimeZoneIdbodystringNoThe contact's time zone ID (use the List Time Zones API to retrieve list of valid time zones)
SortPositionInConsolebodyint?NoThe contact's sort position in the console
HideInConsolebodybool?NoShould this contact be hidden in console
RequestBase<TResponse> Parameters:
NameParameterData TypeRequiredDescription
CustomerNameformstringYesThe HostedSuite Customer Name
UserNameformstringYesThe HostedSuite User Name. Data visibility and security is based on this user's permissions.
PasswordformstringYesThe HostedSuite User's Password
ContactInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
DateLastModifiedformstringNo
ClientNameformstringNo
ClientIdformstringNo
CenterIdformstringNo
CenterNameformstringNo
FirstNameformstringNo
LastNameformstringNo
AlertformstringNo
NameformstringNo
StatusformstringNo
LocationformstringNo
LongDistanceCodeformstringNo
CallInstructionsformstringNo
InformationformstringNo
MoreInformationformstringNo
TitleformstringNo
UserNameformstringNo
UserGroupIdformstringNo
LoginMustChangePasswordAtNextLoginformboolNo
GreetingOverrideformstringNo
KeywordsformList<string>No
AddressformAddressInfoNo
PhoneNumbersformList<PhoneNumberInfo>No
EmailAddressesformList<EmailAddressInfo>No
CustomFieldsformList<CustomFieldInfo>No
LinksformList<HyperlinkInfo>No
CategoriesformList<CategoryInfo>No
ThirdPartyAccountIdformstringNo
SortPositionInConsoleformintNo
HideInConsoleformboolNo
AddressInfo Parameters:
NameParameterData TypeRequiredDescription
Street1formstringNo
Street2formstringNo
CityformstringNo
StateformstringNo
PostalCodeformstringNo
CountryformstringNo
PhoneNumberInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
NumberformstringNo
DialingRuleIdformstringNo
MobileformboolNo
TransferTypesformTransferTypesApiNo
TransferTypesApi Enum:
Both
Blind
Supervised
EmailAddressInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
AddressformstringNo
NameformstringNo
IncludeInNotificationsformboolNo
TypeformEmailAddressTypeValuesNoThe type of email address (To, CC, BCC)
EmailAddressTypeValues Enum:
To
Cc
Bcc
CustomFieldInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
ValueformstringNo
HyperlinkInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
UrlformstringNo
CategoryInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo
ContactInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
DateLastModifiedformstringNo
ClientNameformstringNo
ClientIdformstringNo
CenterIdformstringNo
CenterNameformstringNo
FirstNameformstringNo
LastNameformstringNo
AlertformstringNo
NameformstringNo
StatusformstringNo
LocationformstringNo
LongDistanceCodeformstringNo
CallInstructionsformstringNo
InformationformstringNo
MoreInformationformstringNo
TitleformstringNo
UserNameformstringNo
UserGroupIdformstringNo
LoginMustChangePasswordAtNextLoginformboolNo
GreetingOverrideformstringNo
KeywordsformList<string>No
AddressformAddressInfoNo
PhoneNumbersformList<PhoneNumberInfo>No
EmailAddressesformList<EmailAddressInfo>No
CustomFieldsformList<CustomFieldInfo>No
LinksformList<HyperlinkInfo>No
CategoriesformList<CategoryInfo>No
ThirdPartyAccountIdformstringNo
SortPositionInConsoleformintNo
HideInConsoleformboolNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/contacts/update HTTP/1.1 
Host: evo.hostedsuite.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateContactRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Evo.HostedSuite.Core.ServiceModel">
  <CustomerName>String</CustomerName>
  <Password>String</Password>
  <UserName>String</UserName>
  <Address>
    <City>String</City>
    <Country>String</Country>
    <PostalCode>String</PostalCode>
    <State>String</State>
    <Street1>String</Street1>
    <Street2>String</Street2>
  </Address>
  <Alert>String</Alert>
  <AlertExpirationDate>String</AlertExpirationDate>
  <CallInstructions>String</CallInstructions>
  <CategoryIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </CategoryIds>
  <ContactId>String</ContactId>
  <CustomFields>
    <CustomFieldInfo>
      <Name>String</Name>
      <Value>String</Value>
    </CustomFieldInfo>
  </CustomFields>
  <EmailAddresses>
    <EmailAddressInfo>
      <Address>String</Address>
      <Id>String</Id>
      <IncludeInNotifications>false</IncludeInNotifications>
      <Name>String</Name>
      <Type>To</Type>
    </EmailAddressInfo>
  </EmailAddresses>
  <EmergencyInstructions>String</EmergencyInstructions>
  <FirstName>String</FirstName>
  <GreetingOverride>String</GreetingOverride>
  <HideInConsole>false</HideInConsole>
  <Information>String</Information>
  <Keywords xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Keywords>
  <LastName>String</LastName>
  <Links>
    <HyperlinkInfo>
      <Id>String</Id>
      <Name>String</Name>
      <Url>String</Url>
    </HyperlinkInfo>
  </Links>
  <Location>String</Location>
  <LoginMustChangePasswordAtNextLogin>false</LoginMustChangePasswordAtNextLogin>
  <LoginPassword>String</LoginPassword>
  <LoginUserGroupId>String</LoginUserGroupId>
  <LoginUserName>String</LoginUserName>
  <LongDistanceCode>String</LongDistanceCode>
  <MoreInformation>String</MoreInformation>
  <PhoneNumbers>
    <PhoneNumberInfo>
      <DialingRuleId>String</DialingRuleId>
      <Id>String</Id>
      <Mobile>false</Mobile>
      <Name>String</Name>
      <Number>String</Number>
      <TransferTypes>Both</TransferTypes>
    </PhoneNumberInfo>
  </PhoneNumbers>
  <SortPositionInConsole>0</SortPositionInConsole>
  <Status>String</Status>
  <StatusExpirationDate>String</StatusExpirationDate>
  <ThirdPartyAccountId>String</ThirdPartyAccountId>
  <TimeZoneId>String</TimeZoneId>
  <Title>String</Title>
</UpdateContactRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ContactInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Evo.HostedSuite.Core.ServiceModel">
  <Address>
    <City>String</City>
    <Country>String</Country>
    <PostalCode>String</PostalCode>
    <State>String</State>
    <Street1>String</Street1>
    <Street2>String</Street2>
  </Address>
  <Alert>String</Alert>
  <CallInstructions>String</CallInstructions>
  <Categories>
    <CategoryInfo>
      <Id>String</Id>
      <Name>String</Name>
    </CategoryInfo>
  </Categories>
  <CenterId>String</CenterId>
  <CenterName>String</CenterName>
  <ClientId>String</ClientId>
  <ClientName>String</ClientName>
  <CustomFields>
    <CustomFieldInfo>
      <Name>String</Name>
      <Value>String</Value>
    </CustomFieldInfo>
  </CustomFields>
  <DateLastModified>String</DateLastModified>
  <EmailAddresses>
    <EmailAddressInfo>
      <Address>String</Address>
      <Id>String</Id>
      <IncludeInNotifications>false</IncludeInNotifications>
      <Name>String</Name>
      <Type>To</Type>
    </EmailAddressInfo>
  </EmailAddresses>
  <FirstName>String</FirstName>
  <GreetingOverride>String</GreetingOverride>
  <HideInConsole>false</HideInConsole>
  <Id>String</Id>
  <Information>String</Information>
  <Keywords xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Keywords>
  <LastName>String</LastName>
  <Links>
    <HyperlinkInfo>
      <Id>String</Id>
      <Name>String</Name>
      <Url>String</Url>
    </HyperlinkInfo>
  </Links>
  <Location>String</Location>
  <LoginMustChangePasswordAtNextLogin>false</LoginMustChangePasswordAtNextLogin>
  <LongDistanceCode>String</LongDistanceCode>
  <MoreInformation>String</MoreInformation>
  <Name>String</Name>
  <PhoneNumbers>
    <PhoneNumberInfo>
      <DialingRuleId>String</DialingRuleId>
      <Id>String</Id>
      <Mobile>false</Mobile>
      <Name>String</Name>
      <Number>String</Number>
      <TransferTypes>Both</TransferTypes>
    </PhoneNumberInfo>
  </PhoneNumbers>
  <SortPositionInConsole>0</SortPositionInConsole>
  <Status>String</Status>
  <ThirdPartyAccountId>String</ThirdPartyAccountId>
  <Title>String</Title>
  <UserGroupId>String</UserGroupId>
  <UserName>String</UserName>
</ContactInfo>