API reference
All operations
CONTACT

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.

PUT/api/v2/contacts/{contactId}

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentialsAPI key

Parameters

contactIdpathinteger · int32required

The contact ID to update.

X-On-Behalf-Ofheaderstring · email

Email 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

application/jsonrequired

The complete contact details. ContactId in the body is ignored; the route value is used.

UpdateContactRequest
  • contactIdinteger · int32
  • companyIdinteger · int32
  • titlestring
  • positionstring
  • departmentstring
  • firstNamestring
  • middleNamestring
  • lastNamestring
  • nickNamestring
  • emailstring
  • phonestring
  • cellstring
  • faxstring
  • globalUnsubscribeboolean

Responses

Contact updated successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataContactDto
  • contactIdinteger · int32
  • companyIdinteger · int32
  • companyDisplaystring
  • firstNamestring
  • middleNamestring
  • lastNamestring
  • fullNamestring
  • nickNamestring
  • phonestring
  • cellstring
  • faxstring
  • emailstring
  • titlestring
  • positionstring
  • departmentstring
  • deletedboolean
  • activeboolean
  • enteredstring · date-time
  • lastModifiedstring · date-time
  • completeboolean
  • externalIdstring
  • globalUnsubscribeboolean
  • linkedboolean
  • lastTouchUserstring
  • lastTouchDatestring · datenullable