Update a company

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Path parameters

idstringRequired

Request

Updated company details.
attributesobjectOptional
Attributes for company update
countryCodelongOptional

Country code if phone_number is passed in attributes.

linkedContactsIdslist of longsOptional

Warning - Using PATCH on linkedContactIds replaces the list of linked contacts. Omitted IDs will be removed.

linkedDealsIdslist of stringsOptional

Warning - Using PATCH on linkedDealsIds replaces the list of linked contacts. Omitted IDs will be removed.

namestringOptional
Name of company

Response

Company updated successfully
attributesobject
Company attributes with values
idstring
Unique company id
linkedContactsIdslist of integers
Contact ids for contacts linked to this company
linkedDealsIdslist of strings
Deals ids for companies linked to this company

Errors

400
Bad Request Error
404
Not Found Error