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

export class UserRoleModel
{
    /** @description The Contact Role Id, that links the Contact to their role. */
    // @ApiMember(DataType="Guid", Description="The Contact Role Id, that links the Contact to their role.", Name="ContactRoleId", ParameterType="query")
    public ContactRoleId: string;

    /** @description The Role Id. */
    // @ApiMember(DataType="Guid", Description="The Role Id.", Name="RoleId", ParameterType="query")
    public RoleId: string;

    /** @description The role name. */
    // @ApiMember(DataType="string", Description="The role name.", Name="RoleName", ParameterType="query")
    public RoleName: string;

    /** @description The URL of the role's image icon. */
    // @ApiMember(DataType="string", Description="The URL of the role's image icon.", Name="RolePrimaryImageURL", ParameterType="query")
    public RolePrimaryImageURL: string;

    /** @description The URL of the role's thumbnail image icon. */
    // @ApiMember(DataType="string", Description="The URL of the role's thumbnail image icon.", Name="RolePrimaryImageThumbnailURL", ParameterType="query")
    public RolePrimaryImageThumbnailURL: string;

    /** @description The Guid of the role's media file containing the image icon details. */
    // @ApiMember(DataType="string", Description="The Guid of the role's media file containing the image icon details.", Name="RolePrimaryImageId", ParameterType="query")
    public RolePrimaryImageId: string;

    /** @description The date the contact started having this role. */
    // @ApiMember(DataType="DateTime", Description="The date the contact started having this role.", Name="StartDate", ParameterType="query")
    public StartDate: string;

    /** @description The date the contact will end having this role. */
    // @ApiMember(DataType="DateTime?", Description="The date the contact will end having this role.", Name="EndDate", ParameterType="query")
    public EndDate?: string;

    public constructor(init?: Partial<UserRoleModel>) { (Object as any).assign(this, init); }
}

export class UserContactConnectionModel
{
    /** @description The Contact Role Id, that links the Contact to their role. */
    // @ApiMember(DataType="Guid", Description="The Contact Role Id, that links the Contact to their role.", Name="ContactRoleId", ParameterType="query")
    public ContactRoleId: string;

    /** @description The role name. */
    // @ApiMember(DataType="string", Description="The role name.", Name="ContactRoleName", ParameterType="query")
    public ContactRoleName: string;

    /** @description The list item role Id. */
    // @ApiMember(DataType="Guid", Description="The list item role Id.", Name="ContactListItemRoleId", ParameterType="query")
    public ContactListItemRoleId: string;

    /** @description The URL of the contact role's image icon. */
    // @ApiMember(DataType="string", Description="The URL of the contact role's image icon.", Name="ContactRolePrimaryImageURL", ParameterType="query")
    public ContactRolePrimaryImageURL: string;

    /** @description The URL of the contact role's thumbnail image icon. */
    // @ApiMember(DataType="string", Description="The URL of the contact role's thumbnail image icon.", Name="ContactRolePrimaryImageThumbnailURL", ParameterType="query")
    public ContactRolePrimaryImageThumbnailURL: string;

    /** @description The Guid of the contact role's media file containing the image icon details. */
    // @ApiMember(DataType="string", Description="The Guid of the contact role's media file containing the image icon details.", Name="ContactRolePrimaryImageId", ParameterType="query")
    public ContactRolePrimaryImageId: string;

    /** @description The connected contacts Id. (licensee) */
    // @ApiMember(DataType="string", Description="The connected contacts Id. (licensee)", Name="ConnectionContactId", ParameterType="query")
    public ConnectionContactId: string;

    /** @description The connected contacts Full Name. */
    // @ApiMember(DataType="string", Description="The connected contacts Full Name.", Name="ConnectionContactName", ParameterType="query")
    public ConnectionContactName: string;

    /** @description The connected contacts role. */
    // @ApiMember(DataType="string", Description="The connected contacts role.", Name="ConnectionContactRoleName", ParameterType="query")
    public ConnectionContactRoleName: string;

    /** @description The connected contacts role Id. */
    // @ApiMember(DataType="Guid", Description="The connected contacts role Id.", Name="ConnectionContactRoleId", ParameterType="query")
    public ConnectionContactRoleId: string;

    /** @description The connected contacts list item role Id. */
    // @ApiMember(DataType="Guid", Description="The connected contacts list item role Id.", Name="ConnectionContactListItemRoleId", ParameterType="query")
    public ConnectionContactListItemRoleId: string;

    /** @description The Contacts Type. */
    // @ApiMember(DataType="string", Description="The Contacts Type.", Name="ContactTypeName", ParameterType="query")
    public ContactTypeName: string;

    /** @description The URL to the Connected Contacts Photo. */
    // @ApiMember(DataType="string", Description="The URL to the Connected Contacts Photo.", Name="ConnectionContactPhotoURL", ParameterType="query")
    public ConnectionContactPhotoURL: string;

    /** @description . */
    // @ApiMember(DataType="bool", Description=".", Name="IsContactLicenseeRole", ParameterType="query")
    public IsContactLicenseeRole: boolean;

    /** @description If the connection is as a licensee this is true. */
    // @ApiMember(DataType="bool", Description="If the connection is as a licensee this is true.", Name="IsConnectionLicenseeRole", ParameterType="query")
    public IsConnectionLicenseeRole: boolean;

    /** @description The status of the connection with the contact. */
    // @ApiMember(DataType="string", Description="The status of the connection with the contact.", Name="ConnectionStatusName", ParameterType="query")
    public ConnectionStatusName: string;

    /** @description The status Id of the connection with the contact. */
    // @ApiMember(DataType="Guid", Description="The status Id of the connection with the contact.", Name="ConnectionStatusId", ParameterType="query")
    public ConnectionStatusId: string;

    /** @description The ContactRoleConnectionId of an active connection with the contact. */
    // @ApiMember(DataType="Guid", Description="The ContactRoleConnectionId of an active connection with the contact.", Name="ConnectionId", ParameterType="query")
    public ConnectionId: string;

    /** @description The ContactRoleConnectionRequest of a pending connection with the contact. */
    // @ApiMember(DataType="Guid", Description="The ContactRoleConnectionRequest of a pending connection with the contact.", Name="ConnectionRequestId", ParameterType="query")
    public ConnectionRequestId: string;

    public constructor(init?: Partial<UserContactConnectionModel>) { (Object as any).assign(this, init); }
}

export class ContactEmailAddress
{
    /** @description The Contact Id of the contact. */
    // @ApiMember(DataType="Guid", Description="The Contact Id of the contact.", Name="ContactId", ParameterType="query")
    public ContactId: string;

    /** @description The Contact Full Name */
    // @ApiMember(DataType="string", Description="The Contact Full Name", Name="ContactName", ParameterType="query")
    public ContactName: string;

    /** @description The Contact Email Address. */
    // @ApiMember(DataType="string", Description="The Contact Email Address.", Name="EmailAddress", ParameterType="query")
    public EmailAddress: string;

    /** @description The Contact Photo URL */
    // @ApiMember(DataType="string", Description="The Contact Photo URL", Name="ContactPhotoURL", ParameterType="query")
    public ContactPhotoURL: string;

    public constructor(init?: Partial<ContactEmailAddress>) { (Object as any).assign(this, init); }
}

export class ContactConnectedLinksResponse
{
    /** @description A list of roles assigned to the contact/user. */
    // @ApiMember(DataType="List<UserRoleModel>", Description="A list of roles assigned to the contact/user.", Name="Roles", ParameterType="query")
    public Roles: UserRoleModel[];

    /** @description A list of contact connections assigned to the contact/user. */
    // @ApiMember(DataType="List<UserContactConnectionModel>", Description="A list of contact connections assigned to the contact/user.", Name="ContactConnections", ParameterType="query")
    public ContactConnections: UserContactConnectionModel[];

    /** @description A list of connected contacts and their email addresses. */
    // @ApiMember(DataType="List<ContactEmailAddressBook>", Description="A list of connected contacts and their email addresses.", Name="EmailAddressBook", ParameterType="query")
    public EmailAddressBook: ContactEmailAddress[];

    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<ContactConnectedLinksResponse>) { (Object as any).assign(this, init); }
}

/** @description Retrieve links to a contact (connections/roles/emailAddressBook */
// @Api(Description="Retrieve links to a contact (connections/roles/emailAddressBook")
export class ContactConnectedLinks
{
    public ContactId: string;

    public constructor(init?: Partial<ContactConnectedLinks>) { (Object as any).assign(this, init); }
}

TypeScript ContactConnectedLinks DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Roles: 
	[
		{
			RoleName: String,
			RolePrimaryImageURL: String,
			RolePrimaryImageThumbnailURL: String,
			StartDate: 0001-01-01,
			EndDate: 0001-01-01
		}
	],
	ContactConnections: 
	[
		{
			ContactRoleName: String,
			ContactRolePrimaryImageURL: String,
			ContactRolePrimaryImageThumbnailURL: String,
			ConnectionContactName: String,
			ConnectionContactRoleName: String,
			ContactTypeName: String,
			ConnectionContactPhotoURL: String,
			IsContactLicenseeRole: False,
			IsConnectionLicenseeRole: False,
			ConnectionStatusName: String
		}
	],
	EmailAddressBook: 
	[
		{
			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
		}
	}
}