Hanzo AI
OpenapiCrm

Replace contacts

Replaces one of the caller org's contacts.

PUT /v1/crm/contacts/{id}

Addresshttps://api.hanzo.ai/v1/crm/contacts/{id}
MethodPUT
Operationput_crm_contacts_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Replaces one of the caller org's contacts. Every writable field is taken from the request, so a field the request omits is CLEARED — send the whole record. One of firstName, lastName or email is required.

Request

11 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID names the contact to update and comes from the path.
citybodystring—City is where the person is based.
companyIdbodystring—CompanyID links the contact to one of the org's companies.
emailbodystring—Email is the person's email address.
firstNamebodystring—FirstName is the person's given name.
idbodystring—ID names the contact to update and comes from the path.
jobTitlebodystring—JobTitle is the person's role at their company.
lastNamebodystring—LastName is the person's family name.
linkedinLinkbodystring—Linkedin is the person's LinkedIn URL.
phonebodystring—Phone is the person's phone number.
xLinkbodystring—XLink is the person's X (Twitter) URL.

Response

StatusBodyMeaning
200Contactok

200 body — 12 fields.

FieldInTypeAlwaysDescription
citybodystring—City is where the person is based.
companyIdbodystring—CompanyID links the contact to one of the org's companies; empty when the contact stands alone, and cleared when its company is deleted.
createdAtbodyinteger—CreatedAt is the unix second the contact was created.
emailbodystring—Email is the person's email address.
firstNamebodystring—FirstName is the person's given name.
idbodystring—ID is the server-minted contact id ("cont_" + 128 random bits).
jobTitlebodystring—JobTitle is the person's role at their company.
lastNamebodystring—LastName is the person's family name.
linkedinLinkbodystring—Linkedin is the person's LinkedIn URL.
phonebodystring—Phone is the person's phone number.
updatedAtbodyinteger—UpdatedAt is the unix second of the last write.
xLinkbodystring—XLink is the person's X (Twitter) URL.

Failure carries the platform error shape — see Errors.

Examples

hanzo crm contacts set <id>

CRM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page