POST | /api/contacts/new |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ClientId | body | string | Yes | The ID of the client to associate this contact with. |
FirstName | body | string | No | The contact's first name |
LastName | body | string | No | The contact's last name |
Information | body | string | No | Information about the contact |
GreetingOverride | body | string | No | This contact's greeting override |
PhoneNumbers | body | List<PhoneNumberInfo> | No | This contact's phone numbers |
EmailAddresses | body | List<EmailAddressInfo> | No | This contact's email address(es) |
Links | body | List<HyperlinkInfo> | No | This contact's links |
Alert | body | string | No | The alert to be displayed for the Contact |
AlertExpirationDate | body | string | No | The date the alert expires. Leave blank to not expire |
Status | body | string | No | The status to be displayed for the Contact |
StatusExpirationDate | body | string | No | The date the status expires. Leave blank to not expire |
LongDistanceCode | body | string | No | The Contact's long distance code |
CallInstructions | body | string | No | The Instructions for the Contact |
Title | body | string | No | The title for the Contact |
Keywords | body | List<string> | No | A list of keywords for the Contact |
CategoryIds | body | List<string> | No | The IDs of the categories to associate this contact with. |
CustomFields | body | List<CustomFieldInfo> | No | Any custom fields for the Contact |
LoginUserName | body | string | No | User name for the Contact to login with |
LoginPassword | body | string | No | Password for the Contact to login with |
LoginUserGroupId | body | string | No | User group to assign to this Contact |
LoginMustChangePasswordAtNextLogin | body | bool? | No | The login must change password at next login |
MoreInformation | body | string | No | Even more information about this Contact |
ThirdPartyAccountId | body | string | No | Third party ID for this contact |
Address | body | AddressInfo | No | The contact's address |
EmergencyInstructions | body | string | No | The contact's emergency instructions |
TimeZoneId | body | string | No | The contact's time zone ID (use the List Time Zones API to retrieve list of valid time zones) |
SortPositionInConsole | body | int? | No | The contact's sort position in the console |
HideInConsole | body | bool? | No | Should this contact be hidden in console |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CustomerName | form | string | Yes | The HostedSuite Customer Name |
UserName | form | string | Yes | The HostedSuite User Name. Data visibility and security is based on this user's permissions. |
Password | form | string | Yes | The HostedSuite User's Password |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
DateLastModified | form | string | No | |
ClientName | form | string | No | |
ClientId | form | string | No | |
CenterId | form | string | No | |
CenterName | form | string | No | |
FirstName | form | string | No | |
LastName | form | string | No | |
Alert | form | string | No | |
Name | form | string | No | |
Status | form | string | No | |
Location | form | string | No | |
LongDistanceCode | form | string | No | |
CallInstructions | form | string | No | |
Information | form | string | No | |
MoreInformation | form | string | No | |
Title | form | string | No | |
UserName | form | string | No | |
UserGroupId | form | string | No | |
LoginMustChangePasswordAtNextLogin | form | bool | No | |
GreetingOverride | form | string | No | |
Keywords | form | List<string> | No | |
Address | form | AddressInfo | No | |
PhoneNumbers | form | List<PhoneNumberInfo> | No | |
EmailAddresses | form | List<EmailAddressInfo> | No | |
CustomFields | form | List<CustomFieldInfo> | No | |
Links | form | List<HyperlinkInfo> | No | |
Categories | form | List<CategoryInfo> | No | |
ThirdPartyAccountId | form | string | No | |
SortPositionInConsole | form | int | No | |
HideInConsole | form | bool | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Street1 | form | string | No | |
Street2 | form | string | No | |
City | form | string | No | |
State | form | string | No | |
PostalCode | form | string | No | |
Country | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Name | form | string | No | |
Number | form | string | No | |
DialingRuleId | form | string | No | |
Mobile | form | bool | No | |
TransferTypes | form | TransferTypesApi | No |
Both |
Blind |
Supervised |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Address | form | string | No | |
Name | form | string | No | |
IncludeInNotifications | form | bool | No | |
Type | form | EmailAddressTypeValues | No | The type of email address (To, CC, BCC) |
To |
Cc |
Bcc |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Name | form | string | No | |
Value | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Name | form | string | No | |
Url | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
Name | form | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
DateLastModified | form | string | No | |
ClientName | form | string | No | |
ClientId | form | string | No | |
CenterId | form | string | No | |
CenterName | form | string | No | |
FirstName | form | string | No | |
LastName | form | string | No | |
Alert | form | string | No | |
Name | form | string | No | |
Status | form | string | No | |
Location | form | string | No | |
LongDistanceCode | form | string | No | |
CallInstructions | form | string | No | |
Information | form | string | No | |
MoreInformation | form | string | No | |
Title | form | string | No | |
UserName | form | string | No | |
UserGroupId | form | string | No | |
LoginMustChangePasswordAtNextLogin | form | bool | No | |
GreetingOverride | form | string | No | |
Keywords | form | List<string> | No | |
Address | form | AddressInfo | No | |
PhoneNumbers | form | List<PhoneNumberInfo> | No | |
EmailAddresses | form | List<EmailAddressInfo> | No | |
CustomFields | form | List<CustomFieldInfo> | No | |
Links | form | List<HyperlinkInfo> | No | |
Categories | form | List<CategoryInfo> | No | |
ThirdPartyAccountId | form | string | No | |
SortPositionInConsole | form | int | No | |
HideInConsole | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/contacts/new HTTP/1.1
Host: cpo.hostedsuite.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<NewContactRequest 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>
<ClientId>String</ClientId>
<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>
<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>
</NewContactRequest>
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>