HostedSuite

<back to all web services

NewContactRequest

Create a new contact for the specified client

The following routes are available for this service:
POST/api/contacts/new
NewContactRequest Parameters:
NameParameterData TypeRequiredDescription
ClientIdbodystringYesThe ID of the client to associate this contact with.
FirstNamebodystringNoThe contact's first name
LastNamebodystringNoThe contact's last name
InformationbodystringNoInformation about the contact
GreetingOverridebodystringNoThis contact's greeting override
PhoneNumbersbodyList<PhoneNumberInfo>NoThis contact's phone numbers
EmailAddressesbodyList<EmailAddressInfo>NoThis contact's email address(es)
LinksbodyList<HyperlinkInfo>NoThis contact's links
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
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
CategoryIdsbodyList<string>NoThe IDs of the categories to associate this contact with.
CustomFieldsbodyList<CustomFieldInfo>NoAny custom fields for the Contact
LoginUserNamebodystringNoUser name for the Contact to login with
LoginPasswordbodystringNoPassword for the Contact to login with
LoginUserGroupIdbodystringNoUser group to assign to this Contact
LoginMustChangePasswordAtNextLoginbodybool?NoThe login must change password at next login
MoreInformationbodystringNoEven more information about 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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: evo.hostedsuite.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ClientId":"String","FirstName":"String","LastName":"String","Information":"String","GreetingOverride":"String","PhoneNumbers":[{"Id":"String","Name":"String","Number":"String","DialingRuleId":"String","Mobile":false,"TransferTypes":"Both"}],"EmailAddresses":[{"Id":"String","Address":"String","Name":"String","IncludeInNotifications":false,"Type":"To"}],"Links":[{"Id":"String","Name":"String","Url":"String"}],"Alert":"String","AlertExpirationDate":"String","Status":"String","StatusExpirationDate":"String","LongDistanceCode":"String","CallInstructions":"String","Title":"String","Keywords":["String"],"CategoryIds":["String"],"CustomFields":[{"Name":"String","Value":"String"}],"LoginUserName":"String","LoginPassword":"String","LoginUserGroupId":"String","LoginMustChangePasswordAtNextLogin":false,"MoreInformation":"String","ThirdPartyAccountId":"String","Address":{"Street1":"String","Street2":"String","City":"String","State":"String","PostalCode":"String","Country":"String"},"EmergencyInstructions":"String","TimeZoneId":"String","SortPositionInConsole":0,"HideInConsole":false,"CustomerName":"String","UserName":"String","Password":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":"String","DateLastModified":"String","ClientName":"String","ClientId":"String","CenterId":"String","CenterName":"String","FirstName":"String","LastName":"String","Alert":"String","Name":"String","Status":"String","Location":"String","LongDistanceCode":"String","CallInstructions":"String","Information":"String","MoreInformation":"String","Title":"String","UserName":"String","UserGroupId":"String","LoginMustChangePasswordAtNextLogin":false,"GreetingOverride":"String","Keywords":["String"],"Address":{"Street1":"String","Street2":"String","City":"String","State":"String","PostalCode":"String","Country":"String"},"PhoneNumbers":[{"Id":"String","Name":"String","Number":"String","DialingRuleId":"String","Mobile":false,"TransferTypes":"Both"}],"EmailAddresses":[{"Id":"String","Address":"String","Name":"String","IncludeInNotifications":false,"Type":"To"}],"CustomFields":[{"Name":"String","Value":"String"}],"Links":[{"Id":"String","Name":"String","Url":"String"}],"Categories":[{"Id":"String","Name":"String"}],"ThirdPartyAccountId":"String","SortPositionInConsole":0,"HideInConsole":false}