APIs & Integrations

Cooperative-R
Member

Companies batch-async not updating records

Hi,

I'm having issues with the companies batch update. I set up a job on our system that updates existing records and creates new ones if required afterwards. This was previously working but now the update doesn't appear to be going through anymore (creation is fine).

I've done some testing and if I purposely push bad data an error is thrown as expected. I've also done a get company test using a stored Hubspot companyId and it returns the record I'm trying to update. Any ideas about what might be going wrong?

This endpoint: "https://api.hubapi.com/companies/v1/batch-async/update?hapikey=APIKEY

Here's a sample of the array structure:

array
(
0 => array
(
'objectId' => 'VALID COMPANY ID'
'properties' => array
(
0 => array
(
'name' => 'name'
'value' => 'STRING THAT IS NOT UPDATING'
)
)
)
)

Thanks!

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Companies batch-async not updating records

Hi @Cooperative-R,

Can you send me a link to an example company record in HubSpot that isn't being correctly updated? And if possible, could you include the raw request body you're sending (instead of the structure) so that I can check for formatting?

0 Upvotes