/contacts/{contact_id}/relationships/{relationship_id} Update a specific relationship
Replaces a relationship outright: send relationship_type_id and both related_contacts entries in full. The type can change and one contact can be swapped, but the path contact must remain a party.
Path parameters
| Name | Type | Description |
|---|---|---|
contact_id req | string | Contact ID |
relationship_id req | string | Relationship 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
200 OK
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.