Creates, updates, or deletes a contact matched by its ID in your external system (upsert).
The contact is matched on `ExternalId`: * Match found: the contact's name, title, position, department, email, phone, cell and fax are replaced with the values sent (omitted values are cleared), and its additional phone numbers and email addresses are removed. Sending Deleted: false restores a deleted contact. * No match and AddRecordIfMatchNotFound is true or omitted: a new contact is created under the company whose account number equals AccountNumber; if no company has that account number, a new company is created with it. AccountNumber is required to create a contact. * Deleted: true with a matching, non-deleted contact: the contact is deleted and an empty contact object is returned.
/api/v2/external/contactsAuthentication
Choose one supported method for this request.
Request body
The external contact details. `ExternalId` is required.
deletedbooleannullablesequenceNumberinteger · int32nullableexternalIdstringnullableexternalProviderstringnullablemodifySourcestringnullableaccountNumberstringnullablefirstNamestringnullablemiddleNamestringnullablelastNamestringnullablenickNamestringnullablephonestringnullablecellstringnullablefaxstringnullableemailstringnullabletitlestringnullablepositionstringnullabledepartmentstringnullableaddRecordIfMatchNotFoundbooleannullable
Responses
Contact created, updated, or deleted 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