Hanzo
OpenapiCrm

Replaces one of the caller org's 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.
citybodystringCity is where the person is based.
companyIdbodystringCompanyID links the contact to one of the org's companies.
emailbodystringEmail is the person's email address.
firstNamebodystringFirstName is the person's given name.
idbodystringID names the contact to update and comes from the path.
jobTitlebodystringJobTitle is the person's role at their company.
lastNamebodystringLastName is the person's family name.
linkedinLinkbodystringLinkedin is the person's LinkedIn URL.
phonebodystringPhone is the person's phone number.
xLinkbodystringXLink is the person's X (Twitter) URL.

Response

StatusBodyMeaning
200Contactok

200 body — 12 fields.

FieldInTypeAlwaysDescription
citybodystringCity is where the person is based.
companyIdbodystringCompanyID links the contact to one of the org's companies; empty when the contact stands alone, and cleared when its company is deleted.
createdAtbodyintegerCreatedAt is the unix second the contact was created.
emailbodystringEmail is the person's email address.
firstNamebodystringFirstName is the person's given name.
idbodystringID is the server-minted contact id ("cont_" + 128 random bits).
jobTitlebodystringJobTitle is the person's role at their company.
lastNamebodystringLastName is the person's family name.
linkedinLinkbodystringLinkedin is the person's LinkedIn URL.
phonebodystringPhone is the person's phone number.
updatedAtbodyintegerUpdatedAt is the unix second of the last write.
xLinkbodystringXLink 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