Updates an existing contact (full replace).
This is a full replace: every contact field (including CompanyId) is overwritten with the value in the body, and omitted fields are cleared. AssignedPhones and AssignedEmails replace the contact's lists: entries with an ID of 0 are added, entries with an existing ID are updated, and existing entries not in the list are removed (an empty list removes them all). The contact is marked active. To change only some fields, use PATCH. A client_credentials caller may send the `X-On-Behalf-Of` header with a user's email; that user is then recorded as having modified the contact.
/api/v2/contacts/{contactId}Authentication
Choose one supported method for this request.
Parameters
contactIdpathinteger · int32requiredThe contact ID to update.
X-On-Behalf-Ofheaderstring · emailEmail of an active user to act as. That user is recorded as the owner/author of what this request writes. Only client_credentials tokens may send it (others get 403); an email that matches no active user gets 400.
Request body
The complete contact details. ContactId in the body is ignored; the route value is used.
contactIdinteger · int32companyIdinteger · int32titlestringpositionstringdepartmentstringfirstNamestringmiddleNamestringlastNamestringnickNamestringemailstringphonestringcellstringfaxstringglobalUnsubscribeboolean
Responses
Contact updated successfully.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
contactIdinteger · int32companyIdinteger · int32companyDisplaystringfirstNamestringmiddleNamestringlastNamestringfullNamestringnickNamestringphonestringcellstringfaxstringemailstringtitlestringpositionstringdepartmentstringdeletedbooleanactivebooleanenteredstring · date-timelastModifiedstring · date-timecompletebooleanexternalIdstringglobalUnsubscribebooleanlinkedbooleanlastTouchUserstringlastTouchDatestring · datenullable