APIs & Integrations

MPallot
Member

PATCH API HTTP/1.1 400 Bad Request

Hello,

 

I am looking to update some properties in contacts based off the following endpoints: https://developers.hubspot.com/docs/api/crm/companies.

 

I am doing a PATCH call

 

https://api.hubapi.com/crm/v3/objects/companies/XXXX?hapikey=XXXX

 

The header is content-type: application/json

 

This is the payload {"properties":{"industry":"XX"}}

 

But i get the following error:

 

HTTP/1.1 400 Bad Request

 

Any help would be much appreciated or any advice on how to troubleshoot further.

 

Thanks

0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

PATCH API HTTP/1.1 400 Bad Request

Hi @MPallot 

That is very strange.  Are you sure the company id is correct?  Everything in that call is correctly formatted

0 Upvotes