Hanzo AI
OpenapiCrm

Replace companies

Replaces one of the caller org's companies.

PUT /v1/crm/companies/{id}

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

Replaces one of the caller org's companies. Every writable field is taken from the request, so a field the request omits is CLEARED — send the whole record. A name is required.

Request

12 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID names the company to update and comes from the path.
arrbodyinteger—ARR is annual recurring revenue in minor units (cents) of Currency.
citybodystring—City is the head-office city.
countrybodystring—Country is the head-office country.
currencybodystring—Currency is the ISO code ARR is denominated in; empty defaults to USD.
domainNamebodystring—DomainName is the company's primary domain, e.g.
employeesbodyinteger—Employees is the headcount.
idbodystring—ID names the company to update and comes from the path.
idealCustomerProfilebodyboolean—ICP marks the company as an ideal-customer-profile fit.
linkedinLinkbodystring—Linkedin is the company's LinkedIn URL.
namebodystring—Name is the company name.
xLinkbodystring—XLink is the company's X (Twitter) URL.

Response

StatusBodyMeaning
200Companyok

200 body — 13 fields.

FieldInTypeAlwaysDescription
arrbodyinteger—ARR is annual recurring revenue in minor units (cents) of Currency.
citybodystring—City is the head-office city.
countrybodystring—Country is the head-office country.
createdAtbodyinteger—CreatedAt is the unix second the company was created.
currencybodystring—Currency is the ISO code ARR is denominated in; a write that names none stores USD.
domainNamebodystring—DomainName is the company's primary domain, e.g.
employeesbodyinteger—Employees is the headcount.
idbodystring—ID is the server-minted company id ("comp_" + 128 random bits).
idealCustomerProfilebodyboolean—ICP marks the company as an ideal-customer-profile fit.
linkedinLinkbodystring—Linkedin is the company's LinkedIn URL.
namebodystring—Name is the company name.
updatedAtbodyinteger—UpdatedAt is the unix second of the last write.
xLinkbodystring—XLink is the company's X (Twitter) URL.

Failure carries the platform error shape — see Errors.

Examples

hanzo crm companies set <id>

CRM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page