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 group of companies

Last updated May 12, 2023

POST /companies/v1/batch-async/update

Method Details

HTTP Methods:

POST

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

Update a group of existing company records by their companyId.

This endpoint takes a list of objectIds and that correspond to the companyId of the company you want to update, and a list of properties to update for that company.

Note:
  • This endpoint can only be used to update existing company records based on their companyId. It cannot create new records
  • Up to 100 companies can be updated in a single request. There is no limit to the number of properties that can be updated per company.
  • If there are any errors in the request, the entire request will fail and no updates will be applied to any records.
  • The updates are processed asynchronously, so it may take several minutes to see the updates in HubSpot if you're sending a large number of updates.
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.
objectId Used in the request body The companyId of the company that you want to update.
properties Used in the request body A list of properties that you want to update. Each property must include the name of the property to be updated, and the value of the property to update to.

Returns a 202 Accepted response on success. Any issues with the JSON will result in a 4xx response with details about the specific issue in the body of the response.