API reference
All operations
CONTACT

Partially updates a contact

Same contract as the company and equipment PATCH: send the properties to change and name each one in UpdatedFields. Unlisted properties keep their current values; a listed property left out of the body is set to its empty value. AssignedPhones/AssignedEmails, when listed, replace the contact's lists. Otherwise the update behaves exactly like PUT, including the optional `X-On-Behalf-Of` header.

PATCH/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 properties to change.

PatchContactRequest
  • updatedFieldsstring[]required
    min items 1
  • 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