Platform API

<back to all web services

ContactConnectedLinks

Retrieve links to a contact (connections/roles/emailAddressBook

Requires Authentication
The following routes are available for this service:
All Verbs/api/contacts/{ContactId}/links
ContactConnectedLinks Parameters:
NameParameterData TypeRequiredDescription
ContactIdpathGuidNo
ContactConnectedLinksResponse Parameters:
NameParameterData TypeRequiredDescription
RolesqueryList<UserRoleModel>NoA list of roles assigned to the contact/user.
ContactConnectionsqueryList<UserContactConnectionModel>NoA list of contact connections assigned to the contact/user.
EmailAddressBookqueryList<ContactEmailAddressBook>NoA list of connected contacts and their email addresses.
ResponseStatusformResponseStatusNo
UserRoleModel Parameters:
NameParameterData TypeRequiredDescription
ContactRoleIdqueryGuidNoThe Contact Role Id, that links the Contact to their role.
RoleIdqueryGuidNoThe Role Id.
RoleNamequerystringNoThe role name.
RolePrimaryImageURLquerystringNoThe URL of the role's image icon.
RolePrimaryImageThumbnailURLquerystringNoThe URL of the role's thumbnail image icon.
RolePrimaryImageIdquerystringNoThe Guid of the role's media file containing the image icon details.
StartDatequeryDateTimeNoThe date the contact started having this role.
EndDatequeryDateTime?NoThe date the contact will end having this role.
UserContactConnectionModel Parameters:
NameParameterData TypeRequiredDescription
ContactRoleIdqueryGuidNoThe Contact Role Id, that links the Contact to their role.
ContactRoleNamequerystringNoThe role name.
ContactListItemRoleIdqueryGuidNoThe list item role Id.
ContactRolePrimaryImageURLquerystringNoThe URL of the contact role's image icon.
ContactRolePrimaryImageThumbnailURLquerystringNoThe URL of the contact role's thumbnail image icon.
ContactRolePrimaryImageIdquerystringNoThe Guid of the contact role's media file containing the image icon details.
ConnectionContactIdquerystringNoThe connected contacts Id. (licensee)
ConnectionContactNamequerystringNoThe connected contacts Full Name.
ConnectionContactRoleNamequerystringNoThe connected contacts role.
ConnectionContactRoleIdqueryGuidNoThe connected contacts role Id.
ConnectionContactListItemRoleIdqueryGuidNoThe connected contacts list item role Id.
ContactTypeNamequerystringNoThe Contacts Type.
ConnectionContactPhotoURLquerystringNoThe URL to the Connected Contacts Photo.
IsContactLicenseeRolequeryboolNo.
IsConnectionLicenseeRolequeryboolNoIf the connection is as a licensee this is true.
ConnectionStatusNamequerystringNoThe status of the connection with the contact.
ConnectionStatusIdqueryGuidNoThe status Id of the connection with the contact.
ConnectionIdqueryGuidNoThe ContactRoleConnectionId of an active connection with the contact.
ConnectionRequestIdqueryGuidNoThe ContactRoleConnectionRequest of a pending connection with the contact.
ContactEmailAddress Parameters:
NameParameterData TypeRequiredDescription
ContactIdqueryGuidNoThe Contact Id of the contact.
ContactNamequerystringNoThe Contact Full Name
EmailAddressquerystringNoThe Contact Email Address.
ContactPhotoURLquerystringNoThe Contact Photo URL

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/{ContactId}/links HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ContactId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Roles":[{"ContactRoleId":"00000000-0000-0000-0000-000000000000","RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String","RolePrimaryImageURL":"String","RolePrimaryImageThumbnailURL":"String","RolePrimaryImageId":"00000000-0000-0000-0000-000000000000","StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000"}],"ContactConnections":[{"ContactRoleId":"00000000-0000-0000-0000-000000000000","ContactRoleName":"String","ContactListItemRoleId":"00000000-0000-0000-0000-000000000000","ContactRolePrimaryImageURL":"String","ContactRolePrimaryImageThumbnailURL":"String","ContactRolePrimaryImageId":"00000000-0000-0000-0000-000000000000","ConnectionContactId":"00000000-0000-0000-0000-000000000000","ConnectionContactName":"String","ConnectionContactRoleName":"String","ConnectionContactRoleId":"00000000-0000-0000-0000-000000000000","ConnectionContactListItemRoleId":"00000000-0000-0000-0000-000000000000","ContactTypeName":"String","ConnectionContactPhotoURL":"String","IsContactLicenseeRole":false,"IsConnectionLicenseeRole":false,"ConnectionStatusName":"String","ConnectionStatusId":"00000000-0000-0000-0000-000000000000","ConnectionId":"00000000-0000-0000-0000-000000000000","ConnectionRequestId":"00000000-0000-0000-0000-000000000000"}],"EmailAddressBook":[{"ContactId":"00000000-0000-0000-0000-000000000000","ContactName":"String","EmailAddress":"String","ContactPhotoURL":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}