APIs & Integrations

BohdanBaida
Member

Companies and contacts batch create/update issue

SOLVE

Hi!
I've found that in case of batch creation or update of comanies and contacts when only 1 record does not match some validation rules all the batch is failing with BadRequest(400) status code.
I expected that api will return MultiStatus(207), and process valid records from the batch

1 Accepted solution
Teun
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Companies and contacts batch create/update issue

SOLVE

Hi @BohdanBaida ,

 

You are correct, and this can be quite annoying to deal with. However, there currently is no other solution for dealing with batch creation or updates.
The best thing you can do is post this as an idea on the ideas forum



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


View solution in original post

0 Upvotes
4 Replies 4
Sachavskyi
Contributor | Elite Partner
Contributor | Elite Partner

Companies and contacts batch create/update issue

SOLVE
0 Upvotes
Teun
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Companies and contacts batch create/update issue

SOLVE

Hi @BohdanBaida ,

 

You are correct, and this can be quite annoying to deal with. However, there currently is no other solution for dealing with batch creation or updates.
The best thing you can do is post this as an idea on the ideas forum



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
wtx-signalfire
Participant

Companies and contacts batch create/update issue

SOLVE

To ask for a clarification, does HubSpot still process the creation/update of all the other valid records even if the input to the batch API endpoint contains one or more invalid record?

0 Upvotes
BohdanBaida
Member

Companies and contacts batch create/update issue

SOLVE

Thanks so much for your help! Then we will build our process according to that behavior 

0 Upvotes