Contacts

Set a contact's primary email and/or phone

Sets which of the contact's known emails and phone numbers are its primary ones. Primaries are chosen by value: primaryEmail must be one of the addresses already on the contact and primaryPhone one of its phone numbers, written exactly as they appear on the list row (emails[].email, phones[].phoneNumber); a value the contact does not carry is rejected with 422 PRIMARY_VALUE_NOT_ON_CONTACT and nothing is changed. The call promotes an existing value and never adds a new one — enrich the contact to add addresses or numbers. Send either field or both; the response reports both primaries as they now stand. Free to call.

Errors:

  • 404 CONTACT_NOT_FOUND — No contact with that id exists.
  • 422 PRIMARY_VALUE_NOT_ON_CONTACT — The value is not one the contact already carries; param names which of primaryEmail / primaryPhone was rejected and nothing was changed.
  • 422 VALIDATION_FAILED — The body failed validation, including a body with neither primaryEmail nor primaryPhone.
  • 429 RATE_LIMITED — More than 120 requests per minute or 10,000 per day on the contacts bucket, which every /business/contacts endpoint shares; retry after Retry-After.
  • 500 UNEXPECTED_ERROR — The request could not be completed; quote request_id to support.

Requires one of the following token scopes: contacts.

patch/business/contacts/{contactId}

Request

  • Base URL: https://api.tryfuse.ai/api/v1
  • URL: https://api.tryfuse.ai/api/v1/business/contacts/{contactId}
  • Auth: HTTP basic

Path parameters

contactIdstring required

Id of the contact: the row id from GET /business/lists/{listId}/rows, or the contactId returned by POST /business/contacts/resolve.

Request body

primaryEmailstring email

Email address to make the contact's primary email (a valid address, max 320 characters). It must be one of the emails the contact already carries: this promotes an existing value and never adds a new one.

primaryPhonestring

Phone number to make the contact's primary phone (3-32 characters, written exactly as it appears in the contact's phones). It must be one of the phone numbers the contact already carries: this promotes an existing value and never adds a new one.

Response

Success

Changes