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 deals

Last updated May 31, 2023

POST /deals/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.deals.write

Update a group of existing deal records by their dealId.

This endpoint takes a list of objectIds that correspond to the dealId of the deal you want to update, and a list of properties to update for each deal.

Note:
  • This endpoint can only be used to update existing deal records based on their dealId. It cannot create new records
  • Up to 100 deals can be updated in a single request. There is no limit to the number of properties that can be updated per deal.
  • 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 dealId of the deal 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.