There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Update a company

Last updated May 12, 2023

PUT /companies/v2/companies/:companyId

Method Details

HTTP Methods:

PUT

Content Type:

application/json

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing & CRM

Required Scope:

crm.objects.companies.write

This endpoint updates an existing company with new properties or property values. These properties/values must be specified by JSON in the request body.

Use case for this endpoint: Your company is using HubSpot and  an external Account-Based Marketing (ABM) solution. In your ABM product, you've recorded enough activity to classify a company as a target account. This endpoint would allow you to update the status of the company in HubSpot, kicking off a workflow notifying CRM users about the change. 

Response details

A successful request will return a 200 response with a JSON object representing the updated company.

Required parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Company Id Used in the request URL (see above) Unique identifier for a particular company.
Company JSON Used in the request body This is JSON that represents the changes that you are making to the specified company. This should be in the format of the code sample below.