Trendsic Platform Service

<back to all web services

ContactConnectionRequest

Requires Authentication
Requires any of the roles:Worker, Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,OPTIONS/v1/ContactConnections/{ContactId}
ContactConnectionRequest Parameters:
NameParameterData TypeRequiredDescription
ContactbodyList<Contact>No
ContactIdpathintNo
AgentIdbodyintNo
Contact Parameters:
NameParameterData TypeRequiredDescription
ContactIdformintNo
ContactTypeformintNo
FirstNameformstringNo
LastNameformstringNo
NameformstringNo
RoleformstringNo
TitleformstringNo
EmailWorkformstringNo
EmailPersonalformstringNo
DistrictformstringNo
DistrictIDformintNo
SchoolformstringNo
SchoolIDformlongNo
StateformstringNo
StateNameformstringNo
StateIDformlongNo
CountyIDformlongNo
CountyformstringNo
PhoneformstringNo
DepartmentformstringNo
FlowformstringNo
LastContactformDateTimeNo
DoNotContactformboolNo
ActiveformboolNo
AgentIdformintNo
PhoneAltformstringNo
PeraContactIdformintNo
RoomNumberformstringNo
SourceTypeIdformintNo
SourceTypeDescformstringNo
SourceNoteformstringNo
ContactStatusIdformintNo
ContactStatusDescformstringNo
SSNformstringNo
DateOfBirthformDateTimeNo
DeletedformboolNo
IsSharedformboolNo
address_line1formstringNo
address_cityformstringNo
address_stateformstringNo
address_zipformstringNo
DeletedByformstringNo
DeletedDateTimeUtcformDateTime?No
HasNBCformboolNo
HasFactFinderSheetformboolNo
MiddleInitialformstringNo
TagsformstringNo
DateCreatedformDateTimeNo
PhoneLabelformstringNo
AltPhoneLabelformstringNo
CarriersformstringNo
ContactImageformstringNo
CompanyAffiliationformstringNo
AdditionalInformationformstringNo
HasGiftCardformboolNo
ContactCategoryformintNo
WritingAgentIdformintNo
WritingAgentNameformstringNo
MaritalStatusformstringNo
TotalDebtAmountformdecimalNo
NumberOfDebtAccountsformintNo
FactFinderCodeIdformintNo
BusinessNameformstringNo
DBAformstringNo
ContactGUIDformGuidNo
ProjectEndDateformDateTimeNo
RateformintNo
JobIDformintNo
JobNameformstringNo
JobCountformintNo
LockedformboolNo
LockedByAgentIdformintNo
LockedTimestampformDateTimeNo
InitialsformstringNo
ContactCategoryNameformstringNo
SMSOptInformboolNo
ContactResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ContactformList<Contact>No

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 /v1/ContactConnections/{ContactId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Contact":[{"ContactId":0,"ContactType":0,"FirstName":"String","LastName":"String","Name":"String","Role":"String","Title":"String","EmailWork":"String","EmailPersonal":"String","District":"String","DistrictID":0,"School":"String","SchoolID":0,"State":"String","StateName":"String","StateID":0,"CountyID":0,"County":"String","Phone":"String","Department":"String","Flow":"String","LastContact":"0001-01-01T00:00:00.0000000","DoNotContact":false,"Active":false,"AgentId":0,"PhoneAlt":"String","PeraContactId":0,"RoomNumber":"String","SourceTypeId":0,"SourceTypeDesc":"String","SourceNote":"String","ContactStatusId":0,"ContactStatusDesc":"String","SSN":"String","DateOfBirth":"0001-01-01T00:00:00.0000000","Deleted":false,"IsShared":false,"address_line1":"String","address_city":"String","address_state":"String","address_zip":"String","DeletedBy":"String","DeletedDateTimeUtc":"0001-01-01T00:00:00.0000000","HasNBC":false,"HasFactFinderSheet":false,"MiddleInitial":"String","Tags":"String","DateCreated":"0001-01-01T00:00:00.0000000","PhoneLabel":"String","AltPhoneLabel":"String","Carriers":"String","ContactImage":"String","CompanyAffiliation":"String","AdditionalInformation":"String","HasGiftCard":false,"ContactCategory":0,"WritingAgentId":0,"WritingAgentName":"String","MaritalStatus":"String","TotalDebtAmount":0,"NumberOfDebtAccounts":0,"FactFinderCodeId":0,"BusinessName":"String","DBA":"String","ContactGUID":"00000000000000000000000000000000","ProjectEndDate":"0001-01-01T00:00:00.0000000","Rate":0,"JobID":0,"JobName":"String","JobCount":0,"Locked":false,"LockedByAgentId":0,"LockedTimestamp":"0001-01-01T00:00:00.0000000","Initials":"String","ContactCategoryName":"String","SMSOptIn":false}],"ContactId":0,"AgentId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Contact":[{"ContactId":0,"ContactType":0,"FirstName":"String","LastName":"String","Name":"String","Role":"String","Title":"String","EmailWork":"String","EmailPersonal":"String","District":"String","DistrictID":0,"School":"String","SchoolID":0,"State":"String","StateName":"String","StateID":0,"CountyID":0,"County":"String","Phone":"String","Department":"String","Flow":"String","LastContact":"0001-01-01T00:00:00.0000000","DoNotContact":false,"Active":false,"AgentId":0,"PhoneAlt":"String","PeraContactId":0,"RoomNumber":"String","SourceTypeId":0,"SourceTypeDesc":"String","SourceNote":"String","ContactStatusId":0,"ContactStatusDesc":"String","SSN":"String","DateOfBirth":"0001-01-01T00:00:00.0000000","Deleted":false,"IsShared":false,"address_line1":"String","address_city":"String","address_state":"String","address_zip":"String","DeletedBy":"String","DeletedDateTimeUtc":"0001-01-01T00:00:00.0000000","HasNBC":false,"HasFactFinderSheet":false,"MiddleInitial":"String","Tags":"String","DateCreated":"0001-01-01T00:00:00.0000000","PhoneLabel":"String","AltPhoneLabel":"String","Carriers":"String","ContactImage":"String","CompanyAffiliation":"String","AdditionalInformation":"String","HasGiftCard":false,"ContactCategory":0,"WritingAgentId":0,"WritingAgentName":"String","MaritalStatus":"String","TotalDebtAmount":0,"NumberOfDebtAccounts":0,"FactFinderCodeId":0,"BusinessName":"String","DBA":"String","ContactGUID":"00000000000000000000000000000000","ProjectEndDate":"0001-01-01T00:00:00.0000000","Rate":0,"JobID":0,"JobName":"String","JobCount":0,"Locked":false,"LockedByAgentId":0,"LockedTimestamp":"0001-01-01T00:00:00.0000000","Initials":"String","ContactCategoryName":"String","SMSOptIn":false}]}