POST v1/Clients/{clientId}/Contacts/{contactId}/FacilityAssociations

Creates an association between a contact and a facility.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

The client identifier.

globally unique identifier

Required

contactId

The contact identifier.

integer

Required

Body Parameters

The facility identifier.

integer

Request Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The contact entry identifier of the newly created linked contact..

FacilityAssociationV1
NameDescriptionTypeAdditional information
FacilityId

The facility identifier.

integer

None.

IsDynamicAssociation

The boolean value is false if the contact was manually added to the facility.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "FacilityId": 1,
  "IsDynamicAssociation": true
}

application/xml, text/xml

Sample:
<FacilityAssociation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Titan.API.Core.Models.Contacts">
  <FacilityId>1</FacilityId>
  <IsDynamicAssociation>true</IsDynamicAssociation>
</FacilityAssociation>