There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Update a group of deals

Last updated January 18, 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 API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
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.