/contacts/{contact_id}/relationships Create a relationships for a specific contact
Links this contact to another. related_contacts must hold exactly two entries — one of them this contact — each with the variant_id for its end. No reverse record is created; the relationship is a single document covering both. A contact can hold at most one relationship with any given other contact.
Path parameters
| Name | Type | Description |
|---|---|---|
contact_id req | string | Contact ID |
Request body
relationship_type_idstringbson-idID of the relationship type
related_contactsarray<object>Related contacts with relationship variant names
array item fields →
contact_idstringbson-idID of the contact
variant_idstringbson-idID of the relationship variant
Responses
201 Created
statusintegerint32Response code
messagestringResponse message
timestampintegerunix-timestampResponse time
dataobjectobject fields →
relationshipobjectThe relationship mapping between contacts
object fields →
idstringbson-idID of the relationship
relationship_type_idstringbson-idrequiredID of the relationship type
related_contactsarray<object>requiredThe contacts participating in the relationship along with their associated variant names
array item fields →
variant_idstringbson-idID of the relationship variant
variant_namestringThe name of the variant
contact_idstringbson-idID of the contact
first_namestringThe first name of the contact
last_namestringThe last name of the contact
photo_urlstringURL of the contact’s photo
company_idstringbson-idID of the company, to which the contact belongs
company_namestringName of the company, to whom the contact belongs
owner_idstringbson-idID of the user, to whom the contact belongs
created_atstringdate-timeCreation time of the relationship
modified_atstringdate-timeLast modification time of the relationship
Standard error responses: 400 · 401 · 403 · 404 · 409 · 500 — shared across the API. See Errors.